[mythtv-users] xmltv grab_uk_rt or EIT data, which is the best option?

Simon Dyson sdyson at themaelstrom.co.uk
Mon Oct 9 19:45:54 UTC 2006


Toby Smith wrote:
> On 08/10/06, Simon Dyson <sdyson at themaelstrom.co.uk> wrote:
>   
>> I've also noticed that checking for duplicates by subtitle isn't always
>> accurate because the repeat often prefixes the subtitles with the
>> episode (e.g. 6/12) whilst the original airing doesn't.
>>     
>
> Ah yes. I forget that I have a patched version which removes those
> from the subtitles field, an puts them into episode number instead. I
> think uk_grab_tv_rt has removed them for some time, but he RT data
> seems to have deviated a little recenrly, which doesn't alsways get
> caught by the regular expression that does the work.
>
> The original patch was by my friend Tom Hughes, who got me into all
> this in the first place - I think Tom's contributed this into the
> source for tv_grab_uk_rt so it's probably safe to assume he wont mind
> it distributed here:
>
> --- tv_grab_uk_rt.orig  2006-06-28 08:55:37.000000000 +0100
> +++ tv_grab_uk_rt       2006-06-28 08:56:09.000000000 +0100
> @@ -391,14 +391,14 @@
>         my %p = (channel => $ch, title => [ [ $title ] ]);
>          if (defined $sub_title &&
>              ($sub_title =~ /^(\d+)\/(\d+)$/ ||
> -             $sub_title =~ /^(\d+)\/(\d+)\s+-\s+/))
> +             $sub_title =~ /^(\d+)\/(\d+)\s*-\s*/))
>          {
>              my $episode = $1 - 1;
>              my $episodes = $2;
>
>              $p{'episode-num'} = [ [ " . ${episode}/${episodes} . ",
> "xmltv_ns" ] ];
>
> -            $sub_title =~ s/^(\d+)\/(\d+)(?:\s+-\s+)?//;
> +            $sub_title =~ s/^(\d+)\/(\d+)(?:\s*-\s*)?//;
>
>              undef $sub_title if $sub_title =~ /^\s*$/;
>          }
> [ends]
>
>
>
>
> --
> Toby Smith -=- At Home
>   
Thanks. Looks interesting but does MythTV actually use the episode number?

Whilst episode numbers in the repeats are annoying they're quite useful 
when they're in the original airing as well so I'm not sure whether I 
want to apply this patch.


Simon


More information about the mythtv-users mailing list