Patches item #1047447, was opened at 2004-10-14 16:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424137&aid=1047447&group_id=39046
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: tv_grab_no - patch from xmltv-devel adds categories
Initial Comment:
--- tv_grab_no.orig Mon Oct 4 17:04:48 2004
+++ tv_grab_no Mon Oct 4 17:13:30 2004
@@ -366,6 +366,10 @@
die "didn't see title in @$row[0]" if
not defined $newtitle;
$newtitle =~ s!.*>([^<]+)!$1!;
+ my $newcategory;
+ $newcategory = 'Movies' if @$row[1] =~
/film.gif/;
+ $newcategory = 'News' if @$row[0] =~
/background-color/;
+
my $newdesc = $1 if @$row[1] =~
m/size=1>\n(.*)<br>\n<img/;
$newdesc = encode_entities($newdesc) if
$newdesc;
# OK for desc to be missing.
@@ -418,6 +422,7 @@
$prog{subtitles} = [ { type =>
'teletext' } ] if $teletextsubs;
$prog{subtitles} = [ { type =>
'onscreen' } ] if $normalsubs;
$prog{'previously-shown'} = $rerun if
defined $rerun;
+ $prog{category} = [ [ $newcategory ] ]
if $newcategory;
$writer->write_programme(\%prog);
++$count;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424137&aid=1047447&group_id=39046
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|