mrr19121970 Posted January 13, 2006 Share Posted January 13, 2006 Does anyone have an example VBS script that imports into the EPG using the COM-Interface ? With Astra 28.2 from BSkyB the EPG is empty, I can get it from an external source, but I'm not sure how to get it in the EPG. Thanks in anticipation. Quote Link to comment
mrr19121970 Posted January 16, 2006 Author Share Posted January 16, 2006 Nobody answered my request, but in the meantime I've used myXMLtv.exe instead. After a few teething problems (like the channel.dat file being corrupted by importing from satcodx). Now my now and next epg is viewable again too. this was also due to the channel.dat problem. Mike. Quote Link to comment
mrr19121970 Posted January 17, 2006 Author Share Posted January 17, 2006 (edited) Here is a script that should be added to your startup folder. It will download your XMLtv file, start DVBViewer, start myXMLtv & import your EPG, close myXMLtv & DVBViewer. Have fun... Mike #include <Date.au3> ;------------------- ; Title : Automation of importing XMLtv into DVBViewer ; ; Language : Auto-It Script V3. http://www.autoitscript.com/ ; ; Author : Mike Robertson ; Date : 17.01.2006 ; ; Notes : It is assumed that the channels.ini & XMLtv config files have already been setup correctly. ; : change the path names & XMLtv argument to suit you needs ; : A new tvguide.xml will be produced each run "tvguide CCYYMMDD HHMMSS.xml" ; : you can delete these if you don't want to keep the old files. or simply comment out this line ; : & uncomment out the tvguide.xml line. ; : ; : you can make a standalone EXE if you wish. ; : The script must be run from the XMLtv folder. ; : ;------------------- Const $XMLtv_Path = "C:\program files\xmltv-0.5.42-win32\" Const $XMLtv_Exe = "XMLTV.exe" Const $XMLtv_Window = $XMLtv_Path & $XMLtv_Exe Const $XMLtv_File = "tvguide" & StringReplace(StringReplace(StringReplace(_NowCalc(), ":", ""), "/", ""), " ", "") & ".xml" ;Const $XMLtv_File = "tvguide.xml" Const $XMLtv_Arg = "tv_grab_uk_rt --output " & $XMLtv_File Const $myXMLtv_Path = "C:\program files\myXMLTV\" Const $myXMLtv_Exe = "myXMLTV.exe" Const $myXMLtv_Window = "DVBViewer XMLTV Import" Const $DVBViewer_Path = "C:\program files\DVBViewer\" Const $DVBViewer_Exe = "DVBViewer.exe" Const $DVBViewer_Window = "DVBViewer" ;------------------- ; Start XMLtv & wait for it to end ;------------------- Run($XMLtv_Path & $XMLtv_Exe & " " & $XMLtv_Arg) WinWaitActive($XMLtv_Window) WinWaitClose($XMLtv_Window) ;------------------- ; Start DVBViewer & wait for it's window. Wait another x seconds ;------------------- Run($DVBViewer_Path & $DVBViewer_Exe) WinWaitActive($DVBViewer_Window) Sleep(5000) ;------------------- ; Start myXMLtv & wait for it's window. ; tab to the file name, key in the file name. ; tab to the import button & press it. ; Wait for the import button to be visible again & close the window. ;------------------- Run($myXMLtv_Path & $myXMLtv_Exe) WinWaitActive($myXMLtv_Window) Send("{tab}{tab}{tab}" & $XMLtv_Path & $XMLtv_File & "{tab}{tab}{ENTER}") WinWaitActive($myXMLtv_Window , "Import") WinClose($myXMLtv_Window) ;------------------- ; Close the DVBViewer window ;------------------- WinClose($DVBViewer_Window) Edited January 17, 2006 by mrr19121970 Quote Link to comment
christophe95 Posted January 18, 2006 Share Posted January 18, 2006 Your script Works perfectly for me, I'm in France. Many Thanks. Ps : to increase number of day where can I put value please ? Best regards Quote Link to comment
christophe95 Posted January 18, 2006 Share Posted January 18, 2006 Don't take care about Ps : All is ok, I have EPG for one week. Thank a lot one more Christophe Quote Link to comment
mrr19121970 Posted January 18, 2006 Author Share Posted January 18, 2006 Hi Christophe ! For me the default that comes through is 14 days, but if your XML source is only giving you 1 day, then you can try changing this line: Const $XMLtv_Arg = "tv_grab_uk_rt --days 14 --output " & $XMLtv_File Mike. Quote Link to comment
christophe95 Posted January 18, 2006 Share Posted January 18, 2006 Thanks you, I have just test it and works too, but for me 7 days is maximum, not bad much better than 2 or 3 hours without xmltv. EpG in DVBViewer is totaly solved now for me, it's perfect. Next step for me (and probaly for other ): - wait pro version with multiboard (work perfectly in Ge) and hope take in charged input video (my dream) - web interface - found solution to avoid auto standby when DVBServer work (nobody answer me for that) - HTPC evolution (I can do something for that;;;;I try) Have a nice day Best regard Christophe Quote Link to comment
GMib Posted September 9, 2007 Share Posted September 9, 2007 can you modify this for importing file on inyternet ? my xmltv file is created by a server and it's available on internet. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.