[mythtv] tv_grab_sn diff for slightly different format.

Martin Moeller martin at martinm-76.dk
Fri Apr 4 19:12:14 EST 2003


I'm going to send this off to the xmltv guys as well, but thought you
might like to know as well.

Apparently, www.dagentv.com recently updated their listings just enough
to break tv_grab_sn. After finally locating the part of tv_grab_sn that
grabbed titles and descriptions, I noted what it was: the <span> lines
now all have their own 'id' tag, which was not detected.

Attached is my pach for this situation. Now it's working again for me..

Hopefully this will be of use for others than myself.

-- 
Martin Moeller <martin at martinm-76.dk>
-------------- next part --------------
--- tv_grab_sn.org      2003-04-04 18:42:37.000000000 +0200
+++ tv_grab_sn  2003-04-04 18:55:11.000000000 +0200
@@ -456,7 +456,7 @@
                                   push @{$program{desc}}, [ $_ ];
                               },
                              );
-               while ($third=~s/<span class=\"([^>]+?)\">\s*([^<]+)\s*</</) {
+               while ($third=~s/<span id=\"\d+\" class=\"([^>]+?)\">\s*([^<]+)\s*</</) {
                    my ($class, $content) = ($1, $2);
                    my $handler = $classes{$class};
                    if (not defined $handler) {


More information about the mythtv-dev mailing list