WebEPG and OzTivo - Username and Password? (1 Viewer)

cartman

Portal Member
March 18, 2006
13
0
If someone has experience in some form of basic scripting I wouldn't think it to be hard to add the channel id details and the timezone stuff with some copy & paste / find & replace. I'll have a go at it but don't really know where to start. Any suggestions?
 

Toje

New Member
September 9, 2006
3
0
Sydney
Home Country
Hi all, im new to this.

This has been a pain in my side getting the EPG to work.

So far i have the grabber from http://www.cse.unsw.edu.au/~willu/xm...ab_au_reg.html working in windows, i changed a line of code to get it working for me but it works now.

and grabbing the epg data from http://minnie.tuhs.org/tivo-bin/xmlguide.pl

but now i just need to duplicate channels so the one EPG guide is put over multiple channels. E.g 7 Digital 1 and 7 Digital HD

Dose anyone know how to do that.

Thanks
-Toje
 

DogBoy1169

Portal Member
August 17, 2006
22
0
56
Australia
but now i just need to duplicate channels so the one EPG guide is put over multiple channels. E.g 7 Digital 1 and 7 Digital HD

Dose anyone know how to do that.

Thanks
-Toje

Toje
If I am not mistaken, you need to create a channel entry for each MP channel name. eg.
<channel id="Seven-Syd"><display-name>7 Digital 1</display-name></channel>
<channel id="Seven-Syd"><display-name>7 Digital HD</display-name></channel>

etc
With channel id being the channel name in the tvguide.xml and the display-name matching your MP channel names.
 

sockman

Portal Member
May 3, 2006
17
0
Hey there,
What grabber do I specify for using OzTivo as my source? Does anyone have a sample WebEPG.xml file they could show me?

Cheers,
BW
 

cartman

Portal Member
March 18, 2006
13
0
OK, I've learned a little now about making a vbs script and this seems to work for me. I've checked out plenty of other scripts so there's nothing totally new about what I've done here. I guess I'm just after a little feedback from people who know more about this stuff.

All I've done is created this code as a .vbs text file and I can run it on the downloaded http://minnie.tuhs.org/tivo-bin/xmlguide.pl file where I've already downloaded it. I'm trying to work out how to download it all in one go but that may take me some more time. You'll also need a file called chanid.xml that has the entries of each channel your file grabs just like DogBoy1169 has mentioned. If you want an example of that I can post the one I am using for foxtel.

Code:
Option Explicit
' sets UTC timezone in xml oztivo data file
' and adds channel ids from the chanid.xml file
' I hope it works!

Const ForReading = 1
Const ForWriting = 2

Dim objFSO
Dim objFile
Dim strFile
Dim strOutput
Dim strText
Dim strChanText
Dim strNewText
Dim strOldStartText
Dim strNewStartText
Dim strOldStopText
Dim strNewStopText
Dim strChanID
Dim strOldChanText
Dim strNewChanText

strFile = ScriptPath & "\xmlguide.pl"
strChanID = ScriptPath & "\chanid.xml"

Function ReadFiles()
    On Error Resume Next
    Set objFSO = CreateObject("Scripting.FileSystemObject")
	Set objFile = objFSO.OpenTextFile(strChanID, ForReading)
	strChanText = objFile.ReadAll
	objFile.Close
    Set objFSO = CreateObject("Scripting.FileSystemObject")
	Set objFile = objFSO.OpenTextFile(strFile, ForReading)
	strText = objFile.ReadAll
	objFile.Close
	If Err = 0 Then
        ReadFiles = True
    End If
End Function 

Function ParseText()
    On Error Goto 0
    On Error Resume Next
	strOldChanText = "xmlguide.pl" & chr(34) & ">"
	strNewChanText =  "xmlguide.pl" & chr(34) & ">" & vbCrLf & vbCrLf & strChanText & vbCrLf
	strNewText = Replace(strText, strOldChanText, strNewChanText)	
	strOldStartText = chr(34) & " stop"
	strNewStartText =  " +0000" & chr(34) & " stop"
	strNewText = Replace(strNewText, strOldStartText, strNewStartText)
	strOldStopText = chr(34) & " channel"
	strNewStopText =  " +0000" & chr(34) & " channel"
	strNewText = Replace(strNewText, strOldStopText, strNewStopText)
	If Err = 0 Then
        ParseText = True
    End If
End Function 

Function WriteFile()
    On Error Goto 0
    On Error Resume Next
    Set objFSO = CreateObject("Scripting.FileSystemObject")
	Set objFile = objFSO.OpenTextFile(strFile, ForWriting)
	objFile.WriteLine strNewText
	objFile.Close
    If Err = 0 Then
        WriteFile = True
    End If
End Function

Function ScriptPath()
  ScriptPath = CreateObject("Scripting.FileSystemObject")._
               GetParentFolderName(Wscript.ScriptFullName)
End Function

Sub ParseFile()
    If ReadFiles = True Then	
        If ParseText = True Then 
            If WriteFile = True Then
               MsgBox "File Updated Successfully"
            Else
                MsgBox "Write File Error!" & vbCrLf & Err.Description
            End If       
        Else
            MsgBox "Parse Text Error!" & vbCrLf & Err.Description
        End If
    Else
        MsgBox "Read File Error!" & vbCrLf & Err.Description
    End If
End Sub

Call ParseFile
 

Toje

New Member
September 9, 2006
3
0
Sydney
Home Country
Toje,

What did you do to get it working? I keep getting errors relating to MONO.GetOptions

TIA
Richard

I'm using the python script, so download python
http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi

then download the script,
http://www.cse.unsw.edu.au/~willu/xmltv/tv_grab_au_reg
goto file save as rename the script to tv_grab_au_reg.py, and right click and go to "edit with IDLE"

find the line
"config_file = os.path.join('.xmltv','tv_grab_au_reg.xml')"
Change it to
"config_file = os.path.join('xmltv','tv_grab_au_reg.xml')"
save and exit

Open the Command line ,then go to the directory you have the script. And run
"tv_grab_au_reg.py --configure"

Open Windows Explorer and then go to
C:\Documents and Settings\UserName\xmltv

Edit tv_grab_au_reg.xml with you user name and password settings for oztivo.
Save and then put the tv_grab_au_reg.py script into the XMLTV folder of media portal.

Then run
"tv_grab_au_reg.py -o TVGuide.xml"

and thats it. But you need to set up the channels and read the instructions in the tv_grab_au_reg.xml on how to do that.
 

Toje

New Member
September 9, 2006
3
0
Sydney
Home Country
Toje
If I am not mistaken, you need to create a channel entry for each MP channel name. eg.
<channel id="Seven-Syd"><display-name>7 Digital 1</display-name></channel>
<channel id="Seven-Syd"><display-name>7 Digital HD</display-name></channel>

etc
With channel id being the channel name in the tvguide.xml and the display-name matching your MP channel names.

Its doing that but still no luck.
 

Users who are viewing this thread

Top Bottom