[mythtv-users] xmltv grab_uk_rt or EIT data, which is the best option?
Toby Smith
toby.oikade at googlemail.com
Mon Oct 9 19:34:26 UTC 2006
On 08/10/06, Simon Dyson <sdyson at themaelstrom.co.uk> wrote:
> Toby Smith wrote:
> > Where they do differ is their habit of providing special reviews of
> > the more salient shows as the description, but not copying that review
> > to any repeat of the same episode, which will have the
> > channel-provided information instead. This does occasionally mean that
> > on shows without subtitles you end up with a double recording.
>
> 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
More information about the mythtv-users
mailing list