[mythtv] mythfilldatabase fix for xmltv_id's with space signs

Helge Laurisch Helge at Laurisch.DynDNS.org
Mon Mar 10 18:47:24 EST 2003


here is a patch for provider names containing spaces as in germany usual ;o)

so a fill of the database can now use the provider "RTL" together with "RTL 2" provided by xmltv ...


*** filldata.cpp	Sun Mar  9 16:15:24 2003
--- filldata.cpp.old	Sun Mar  9 16:14:50 2003
***************
*** 282,289 ****
      pginfo->endts = et;
  
      text = element.attribute("channel", "");
      
!     pginfo->channel = text;
  
      pginfo->start = fromXMLTVDate(pginfo->startts);
      pginfo->end = fromXMLTVDate(pginfo->endts);
--- 282,290 ----
      pginfo->endts = et;
  
      text = element.attribute("channel", "");
+     split = QStringList::split(" ", text);
      
! 	 pginfo->channel = split[0];
  
      pginfo->start = fromXMLTVDate(pginfo->startts);
      pginfo->end = fromXMLTVDate(pginfo->endts);

-- 
Air Conditioned Environment - Do not open Windows!

-- 
Air Conditioned Environment - Do not open Windows!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20030310/0e38f187/attachment.bin


More information about the mythtv-dev mailing list