Jump to content

Importing into EPG with a script


mrr19121970

Recommended Posts

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.

Link to comment

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.

Link to comment

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 by mrr19121970
Link to comment

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.

Link to comment

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

Link to comment
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...