[mythtv] Mythfilldatabase ran, no data

Dave Just justifiably at cwazy.co.uk
Mon Jan 23 20:05:47 UTC 2006


On 23 Jan 2006, at 19:46, Stuart Morgan wrote:

> On Monday 23 Jan 2006 19:07, Dave Just wrote:
>> Could you share your patch to remove episode numbers from subtitles?

Got it, fantastic, thanks, it removes a bunch of duplicates I was  
weeding by hand before.  As I said, it seems worse since I'm now  
mixing EIT and RT e.g. for E4 and E4+1 since RT doesn't have the +1  
yet.  I suppose missing +1 listings suggest another hack to the  
grabber, actually... but I'm going
to resist trying it.

Cheers,

  - Dave


*** /usr/bin/tv_grab_uk_rt~     2006-01-08 22:17:09.000000000 +0000
--- /usr/bin/tv_grab_uk_rt      2006-01-23 19:54:01.000000000 +0000
***************
*** 350,355 ****
--- 350,360 ----
             else { die "bad true/false value $_" }
         }

+ # hack from Stuart Morgan to remove subtitle entries of form "9/10 - "
+        if (defined $episode) {
+         $episode =~ s/^\d+\/\d+\s\-\s//;
+        }
+
         warn "ignoring sub-title $sub_title since episode also given\n"
           if defined $sub_title and defined $episode;
         $sub_title = $episode if defined $episode;



More information about the mythtv-dev mailing list