Ticket #1377: austar_eit.diff
File austar_eit.diff, 3.4 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/eitfixup.cpp
49 49 FixPBS(event); 50 50 else if (kFixComHem == fix_type) 51 51 FixComHem(event); 52 else if (kFixAU == fix_type) 53 FixAU(event); 52 54 53 55 event.Event_Name.stripWhiteSpace(); 54 56 event.Event_Subtitle.stripWhiteSpace(); … … 330 332 } 331 333 } 332 334 335 /** \fn EITFixUp::FixAU(Event&) const 336 * \brief Use this to standardize DVB-S guide in Australia. 337 */ 338 void EITFixUp::FixAU(Event &event) const 339 { 340 event.ContentDescription = event.Event_Subtitle; 341 /* Used for DVB-S Subtitles are seperated by a colon */ 342 int position = event.Description.find(':'); 343 if (position != -1) 344 { 345 const QString stmp = event.Description; 346 event.Event_Subtitle = stmp.left(position); 347 event.Description = stmp.right(stmp.length() - position - 2); 348 } 349 else 350 { 351 event.Event_Subtitle = ""; 352 } 353 } 354 333 355 /** \fn EITFixUp::FixComHem(Event&) const 334 356 * \brief Use this to standardize ComHem DVB-C service in Sweden. 335 357 */ -
libs/libmythtv/dbcheck.cpp
10 10 #include "mythdbcon.h" 11 11 12 12 /// This is the DB schema version expected by the running MythTV instance. 13 const QString currentDatabaseVersion = "112 7";13 const QString currentDatabaseVersion = "1128"; 14 14 15 15 static bool UpdateDBVersionNumber(const QString &newnumber); 16 16 static bool performActualUpdate(const QString updates[], QString version, … … 2048 2048 return false; 2049 2049 } 2050 2050 2051 if (dbver == "1127") 2052 { 2053 const QString updates[] = { 2054 "INSERT INTO dtv_privatetypes (sitype,networkid,private_type,private_value) VALUES ('dvb',4096,'guide_fixup','5');", 2055 "" 2056 }; 2057 if (!performActualUpdate(updates, "1128", dbver)) 2058 return false; 2059 } 2060 2051 2061 //"ALTER TABLE capturecard DROP COLUMN dvb_recordts;" in 0.21 2052 2062 //"ALTER TABLE capturecard DROP COLUMN dvb_hw_decoder;" in 0.21 2053 2063 … … 2645 2655 "INSERT INTO `dtv_privatetypes` VALUES ('dvb',4105,'guide_fixup','1');", 2646 2656 "INSERT INTO `dtv_privatetypes` VALUES ('dvb',4106,'guide_fixup','1');", 2647 2657 "INSERT INTO `dtv_privatetypes` VALUES ('dvb',4107,'guide_fixup','1');", 2658 "INSERT INTO dtv_privatetypes VALUES ('dvb',4096,'guide_fixup','5');", 2648 2659 "INSERT INTO `dtv_privatetypes` VALUES ('dvb',4097,'guide_fixup','1');", 2649 2660 "INSERT INTO `dtv_privatetypes` VALUES ('dvb',4098,'guide_fixup','1');", 2650 2661 "INSERT INTO `dtv_privatetypes` VALUES ('dvb',94,'tv_types','1,128');", -
libs/libmythtv/eitfixup.h
22 22 kFixUK = 2, 23 23 kFixPBS = 3, 24 24 kFixComHem = 4, 25 kFixAU = 5, 25 26 }; 26 27 27 28 EITFixUp(); … … 38 39 void FixUK(Event &event) const; // UK DVB-T 39 40 void FixPBS(Event &event) const; // USA ATSC 40 41 void FixComHem(Event &event) const; // Sweden DVB-C 42 void FixAU(Event &event) const; // Australia DVB-S 41 43 42 44 /** List of ServiceID's for which to parse out subtitle 43 45 * from the description. Used in EITFixUpStyle4().