[mythtv] [PATCH] mythfilldatabase

Jesper Toft jesper at bzImage.dk
Sun Jun 27 17:08:41 EDT 2004


Hi,

I dont know if this is a problem with mythtv or the danish xmltv. The 
following patch sets the subtitle field to the programs episode number. If 
not done this way, the episode number is just discasted, and all episodes of 
a serie looks alike in the "watch recordings" list.

Index: filldata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfilldatabase/filldata.cpp,v
retrieving revision 1.120
diff -u -r1.120 filldata.cpp
--- filldata.cpp        25 Jun 2004 23:00:53 -0000      1.120
+++ filldata.cpp        27 Jun 2004 20:59:21 -0000
@@ -1337,6 +1337,10 @@
             {
                 parseCredits(info, pginfo);
             }
+           else if (info.tagName() == "episode-num")
+           {
+               pginfo->subtitle = getFirstText(info);
+           }
         }
     }


/Jesper


More information about the mythtv-dev mailing list