home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
UK SKYTV Set top box
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bolders" data-source="post: 273861" data-attributes="member: 42721"><p>Hi andy</p><p></p><p></p><p>Not to sure how you are trying to get guide data but i will try to talk you through how I do it. I do not get any data from a website directly. I use xmltv which is run from a command line. You specify where you want to get the guide data from (e.g. radio times) and it goes off and does its thing.</p><p></p><p>First have you got xmltv downloaded - if not you can get it from here</p><p></p><p><a href="http://sourceforge.net/project/showfiles.php?group_id=39046" target="_blank">SourceForge.net: Files</a></p><p></p><p>First extract xmltv to its own folder</p><p></p><p>The next thing you need to do is specify which channels you want data for. I think that xmltv will do this automatically on its first run but I have not done it for a while so can't be certain. However I have a batch file which I run if I want to re-specify which channels I want data for. This will always work and consists of a single line and so its very easy. (dont know how familiar you are with batch files so i will be real basic - sorry if you already know this).</p><p></p><ol> <li data-xf-list-type="ol">Open notepad</li> <li data-xf-list-type="ol">enter the text <br /> <span style="color: Blue">xmltv.exe tv_grab_uk_rt --configure</span></li> <li data-xf-list-type="ol">save file as <br /> <span style="color: Blue">reset channel list.bat</span> (or something which makes sense to you - as long as it has a .bat extension)</li> <li data-xf-list-type="ol">put the bat file in your xmltv folder</li> </ol><p></p><p>OK now you have to create another bat file which will get xmltv to gather the program data. when this batch file is run it will create a file called tvguide.xml</p><p></p><ul> <li data-xf-list-type="ul">Open notepad again</li> <li data-xf-list-type="ul">Enter the text<br /> <span style="color: Blue">for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "tvguide.xml" tvguide-%%f-%%e-%%d.xml <br /> xmltv.exe tv_grab_uk_rt --output tvguide.xml<br /> pause</span><br /> <br /> note that the 1st and 3rd line of text are not really needed - <br /> The first line of text renames the existing tvguide.xml file, if there is one, by adding the current date to the file name before creating a new tvguide.xml file. I do this because sometimes the radio times site is not functioning. In these instances your existing guide data will be deleted and you will be left with a program data file that is not complete. This will result in the TV guide in media portal being void of any program data. If this happens I just rename the previous data file back to tvguide.xml and all is well again. Be aware tho that there is no code to delete the backups so every now and again its worth going in to delete the older files - mine are about 20MB each so if left long enough you could end up runing out of disk space.<br /> <br /> The 3rd line (the pause command) stops the program from finishing until a button is pressed. This is just there so you can check that the process has completed properly. Once you have checked that the script is working properly delete this line. If you dont the program window will not close without manual intervention.<br /> <br /> The 2nd line - (this is the important one that does all the work)<br /> The "<span style="color: RoyalBlue">xmltv.exe</span>" parameter starts xmltv<br /> The "<span style="color: RoyalBlue">tv_grab_uk_rt</span>" parameter specifies that the grab will be done from radio times<br /> The "<span style="color: RoyalBlue">--output tvguide.xml</span>" parameter specifies the file name of the output file </li> <li data-xf-list-type="ul">Save file as Channel Scan.bat (or again something that makes sense to you)</li> <li data-xf-list-type="ul"> move the bat file to the xmltv folder (xmltv.exe should also be in this folder)</li> </ul><p></p><p>Thats it - now run the 1st bat file and follow the instructions on the screen to choose which programs you want data for. Once this has been run a new folder will be created in the xmltv directory called <span style="color: RoyalBlue">.xmltv</span>. In this folder a file will be created called <span style="color: RoyalBlue">tv_grab_uk_rt.conf</span> - This is just a list of all the programs you have selected.</p><p></p><p>Next run the 2nd batch file (channel scan.bat). This will be an automated process which will require no intervetion from you. When it finishes it will ask you to press a button to continue (this is because of the pause command). This will enable you to check that you have got a 100% complete scan and that no erros occured. If all is well remember to delete the pause comand form the batch file.</p><p></p><p>Finally create a scheduled task from windows control panel that runs channel scan.bat at the time that is good for you - I tend to run mine every day at about 5 in the morning.</p><p></p><p>That is all there is too it - all you need to do now is point the TV server to where you have your xmltv folder and configure the xmltv plugin. Cant talk you through this at the mo cause my system is down after a bad bios update <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> - new bits commin tomoro tho <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />. So if you get stuck on the xmltv plugin config, in the tv server, i should be able to provide info on tuesday (assuming new build goes well).</p><p></p><p>Hope this all makes sense </p><p></p><p>bolders</p><p></p><p>Ive attached copies of the 2 batch files that I use - as you can see they really are very simple.</p></blockquote><p></p>
[QUOTE="bolders, post: 273861, member: 42721"] Hi andy Not to sure how you are trying to get guide data but i will try to talk you through how I do it. I do not get any data from a website directly. I use xmltv which is run from a command line. You specify where you want to get the guide data from (e.g. radio times) and it goes off and does its thing. First have you got xmltv downloaded - if not you can get it from here [url=http://sourceforge.net/project/showfiles.php?group_id=39046]SourceForge.net: Files[/url] First extract xmltv to its own folder The next thing you need to do is specify which channels you want data for. I think that xmltv will do this automatically on its first run but I have not done it for a while so can't be certain. However I have a batch file which I run if I want to re-specify which channels I want data for. This will always work and consists of a single line and so its very easy. (dont know how familiar you are with batch files so i will be real basic - sorry if you already know this). [LIST=1] [*]Open notepad [*]enter the text [COLOR="Blue"]xmltv.exe tv_grab_uk_rt --configure[/COLOR] [*]save file as [COLOR="Blue"]reset channel list.bat[/COLOR] (or something which makes sense to you - as long as it has a .bat extension) [*]put the bat file in your xmltv folder [/LIST] OK now you have to create another bat file which will get xmltv to gather the program data. when this batch file is run it will create a file called tvguide.xml [LIST=2] [*]Open notepad again [*]Enter the text [COLOR="Blue"]for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "tvguide.xml" tvguide-%%f-%%e-%%d.xml xmltv.exe tv_grab_uk_rt --output tvguide.xml pause[/COLOR] note that the 1st and 3rd line of text are not really needed - The first line of text renames the existing tvguide.xml file, if there is one, by adding the current date to the file name before creating a new tvguide.xml file. I do this because sometimes the radio times site is not functioning. In these instances your existing guide data will be deleted and you will be left with a program data file that is not complete. This will result in the TV guide in media portal being void of any program data. If this happens I just rename the previous data file back to tvguide.xml and all is well again. Be aware tho that there is no code to delete the backups so every now and again its worth going in to delete the older files - mine are about 20MB each so if left long enough you could end up runing out of disk space. The 3rd line (the pause command) stops the program from finishing until a button is pressed. This is just there so you can check that the process has completed properly. Once you have checked that the script is working properly delete this line. If you dont the program window will not close without manual intervention. The 2nd line - (this is the important one that does all the work) The "[COLOR="RoyalBlue"]xmltv.exe[/COLOR]" parameter starts xmltv The "[COLOR="RoyalBlue"]tv_grab_uk_rt[/COLOR]" parameter specifies that the grab will be done from radio times The "[COLOR="RoyalBlue"]--output tvguide.xml[/COLOR]" parameter specifies the file name of the output file [*]Save file as Channel Scan.bat (or again something that makes sense to you) [*] move the bat file to the xmltv folder (xmltv.exe should also be in this folder) [/LIST] Thats it - now run the 1st bat file and follow the instructions on the screen to choose which programs you want data for. Once this has been run a new folder will be created in the xmltv directory called [COLOR="RoyalBlue"].xmltv[/COLOR]. In this folder a file will be created called [COLOR="RoyalBlue"]tv_grab_uk_rt.conf[/COLOR] - This is just a list of all the programs you have selected. Next run the 2nd batch file (channel scan.bat). This will be an automated process which will require no intervetion from you. When it finishes it will ask you to press a button to continue (this is because of the pause command). This will enable you to check that you have got a 100% complete scan and that no erros occured. If all is well remember to delete the pause comand form the batch file. Finally create a scheduled task from windows control panel that runs channel scan.bat at the time that is good for you - I tend to run mine every day at about 5 in the morning. That is all there is too it - all you need to do now is point the TV server to where you have your xmltv folder and configure the xmltv plugin. Cant talk you through this at the mo cause my system is down after a bad bios update :( - new bits commin tomoro tho :D. So if you get stuck on the xmltv plugin config, in the tv server, i should be able to provide info on tuesday (assuming new build goes well). Hope this all makes sense bolders Ive attached copies of the 2 batch files that I use - as you can see they really are very simple. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
UK SKYTV Set top box
Contact us
RSS
Top
Bottom