[mythtv] [mythtv-commits] mythtv commit: r21784 by robertm

Robert McNamara robert.mcnamara at gmail.com
Tue Sep 15 18:02:43 UTC 2009


On Tue, Sep 15, 2009 at 3:05 AM, David Madsen <david.madsen at gmail.com> wrote:
> I've been testing this, and I'm still seeing some problems with
> mythfrontend finding these files.  I think I've tracked it down to the
> RegExp being used.  It appears there is a required digit portion of
> the regex "[0-9]{1,3}" that is causing matches to fail.  The following
> patch, which includes the digit inside the optional season grouping
> fixed the issue for me.
>
> --- programs/mythfrontend/playbackbox.cpp       (revision 21864)
> +++ programs/mythfrontend/playbackbox.cpp       (working copy)
> @@ -1923,8 +1923,8 @@
>             "(?:" // begin optional Season portion
>             "S(?:eason)?" // optional "S" or "Season"
>             "(?:\\s|-|_|\\.)?" // optional separator
> +            "[0-9]{1,3}" // number
>             ")?" // end optional Season portion
> -            "[0-9]{1,3}" // number
>             "(?:" // begin optional Episode portion
>             "(?:\\s|-|_|\\.)?" // optional separator
>             "(?:x?" // optional "x"


David,

(Please don't top post)

What file name are you trying to match?  All of the listed formats
work perfectly here.

Robert


More information about the mythtv-dev mailing list