The attached patch concatenates and re-parses the title and subtitle if
they end/start with "..."

so :
Title :         Dispatches: Confessions of a...
SubTitle :      ...Parking Attendant

becomes

Title :         Dispatches
SubTitle :      Confessions of a Parking Attendant


-- 
John Pullan <[EMAIL PROTECTED]>
Index: siparser.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/siparser.cpp,v
retrieving revision 1.7
diff -u -r1.7 siparser.cpp
--- siparser.cpp	23 Feb 2005 05:04:36 -0000	1.7
+++ siparser.cpp	3 Mar 2005 22:01:43 -0000
@@ -2920,6 +2922,7 @@
     event.Description = event.Description.replace("Brand New Series","");
     event.Description = event.Description.replace("New Series","");
 
+
     position = event.Description.find(':');
     if (position != -1)
     {
@@ -2934,6 +2937,24 @@
             event.Description = Temp;
         }
     }
+
+    if (event.Event_Name.endsWith("...") && 
+        event.Event_Subtitle.startsWith("..."))
+    {
+        //try and make the subtitle
+        QString Full = event.Event_Name.left(event.Event_Name.length()-3)+" "+
+                    event.Event_Subtitle.right(event.Event_Subtitle.length()-3);
+        if ((position = Full.find(":")) != -1)
+        {
+           event.Event_Name = Full.left(position);
+           event.Event_Subtitle = Full.right(Full.length()-position-2);
+        }
+        else if ((position = Full.find(".")) != -1)
+        {
+           event.Event_Name = Full.left(position);
+           event.Event_Subtitle = Full.right(Full.length()-position-2);
+        }
+    }
 }
 
 void SIParser::EITFixUpStyle3(Event& event)
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to