Difference between revisions of "XMLTV"

From MythTV Official Wiki
Jump to: navigation, search
Line 45: Line 45:
 
next what you wanna do is the get the tags for each channel.. so lets fetch the data and save it to a tmp file.
 
next what you wanna do is the get the tags for each channel.. so lets fetch the data and save it to a tmp file.
 
"tv_grab_no --days=1 > /tmp/tv.xml" now.. open that file and write down each tag for each channel. look for lines like.
 
"tv_grab_no --days=1 > /tmp/tv.xml" now.. open that file and write down each tag for each channel. look for lines like.
<channel id="1.fredag.dagbladet.no">
+
<channel id="1.fredag.dagbladet.no">
<display-name>NRK 1</display-name>
+
 
As you see. 1.fredag.dagbladet.no is for Nrk1. So now when you run mythtv-setup --> channel editor..
+
As you will see in the file. 1.fredag.dagbladet.no is for Nrk1.  
this means that for the channel Nrk1 you need to set the "XMLTV ID" to 1.fredag.dagbladet.no
+
So now when you run mythtv-setup --> channel editor. this means that for the channel Nrk1 you need to set the "XMLTV ID" to 1.fredag.dagbladet.no
 
do this for all the channels.. when your finaly finished with doing all that,, just run mythfilldatabase,
 
do this for all the channels.. when your finaly finished with doing all that,, just run mythfilldatabase,
 
when its finished start up mythfrontend ..
 
when its finished start up mythfrontend ..

Revision as of 06:05, 8 March 2006

Setting up XmlTV for use with MythTV is documented in the MythTV HOWTO 5.3.

The purpose of this page is to cover specific issues that aren't necessarily covered in the official documentation.

Data Direct

With zap2it no longer providing listing information to XMLTV for North America (tv_grab_na), the only option is for the new Data Direct solution. Supported fully in version 0.15 of MythTV, the 0.14 version of MythTV, for a short time, requires a fix to continue downloading listing information successfully. More information is available in the Data Direct.

Outside North America

If you live outside the USA and Canada, there are some other sources of guide information

Australia

http://www.mythtv.org/wiki/index.php?title=XmlTv&action=edit&section=2http://membled.com/work/apps/xmltv/

  1. http://www.icetv.com.au (AU$3 per week subscription)
  2. http://immir.com/tv_grab_au (Free)
  3. http://www.tvguide.org.au (Free, requires registration?)
  4. Australian XMLTV grabbers (ice + tvguide)

Belgium

  1. http://users.skynet.be/jxmltv (very fast, written in Java)
  2. http://pytvgrab.sourceforge.net/
  3. http://membled.com/work/apps/xmltv/

Netherlands

  1. http://visualization.tudelft.nl/~paul/grabber/
  2. http://www.addictivesoftware.net/index.php?option=content&task=view&id=3&Itemid=28

Sweden

  1. http://tv.swedb.se/

Italy

  1. http://www.xiaprojects.com/www/prodotti/tv_grab_it/main.php (Haven't tested it)

Austria/Germany

The XMLTV Data usefull in Austria/ Germany you get with tv_grab_de_tvtoday. It has the episodes of series all mixed up in he main title. The part Number ('Teil') of the series are not always nicely structured and spill over to the title and subtitle field. This makes it quite impossible to record every sequence of a series (if you do not want to make a time based recording on a single channel). I decided to write a small mySQL script to update the programm data after performing the daily load of the xmltv file. This mySQL statment is batched after the daily mythfilldatabase entry in my CRON Script. The Statment looks for sequences That have the Word 'Teil' in it. This is the German word for 'Part'.

Norway

To use the XMLTV Data for Norway, you will have to use "tv_grab_no --configure". runnig "tv_grab_no --configure" will give you some option,, its this command where you chouse which channel you want program data from.. now after you have done that,, you need to copy your ~/.xmltv/tv_grab_no.conf to ~/.mythtv/somename.xmltv. next what you wanna do is the get the tags for each channel.. so lets fetch the data and save it to a tmp file. "tv_grab_no --days=1 > /tmp/tv.xml" now.. open that file and write down each tag for each channel. look for lines like. <channel id="1.fredag.dagbladet.no">

As you will see in the file. 1.fredag.dagbladet.no is for Nrk1. So now when you run mythtv-setup --> channel editor. this means that for the channel Nrk1 you need to set the "XMLTV ID" to 1.fredag.dagbladet.no do this for all the channels.. when your finaly finished with doing all that,, just run mythfilldatabase, when its finished start up mythfrontend ..



UPDATE IGNORE program
    SET    chanid=chanid
          ,starttime=starttime
          ,subtitle= concat_ws(' ', substring_index(substring(title,locate('Teil', title)-6,4+20), ' ', -2), subtitle )
          ,title= left(title,locate(substring_index(substring(title,locate('Teil', title)-6,4+20), ' ', -2),title) -1)
    WHERE title like '%Teil%';