I had some problems with time offset´s in XMLTV, as it was showing the time
+0200 ahead, and in that way messing my epg up.
If I download a egp for 14 days it had over 10.000 shows that was 2 H offset, and manually edit the xml file was not an opiton. First I tried with the replase funktion in Notepad but it would just hang after a few changes..(btw it would surten have take about 12 weeks to change the whole file..)
I found a script that change all instanses that was wrong for me in just a "blink of an eye"...
Whit this code it chan replase just anything...
argumente to run it in my case is
as the first is what it is in the file, and second what it would change to...
This is a shourt cut for me...
//Johan
+0200 ahead, and in that way messing my epg up.
If I download a egp for 14 days it had over 10.000 shows that was 2 H offset, and manually edit the xml file was not an opiton. First I tried with the replase funktion in Notepad but it would just hang after a few changes..(btw it would surten have take about 12 weeks to change the whole file..)
I found a script that change all instanses that was wrong for me in just a "blink of an eye"...
Whit this code it chan replase just anything...
Code:
Const ForReading = 1
Const ForWriting = 2
strFileName = Wscript.Arguments(0)
strOldText = Wscript.Arguments(1)
strNewText = Wscript.Arguments(2)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFileName, ForReading)
strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, strOldText, strNewText)
Set objFile = objFSO.OpenTextFile(strFileName, ForWriting)
objFile.WriteLine strNewText
objFile.Close
argumente to run it in my case is
Code:
cscript test.vbs "C:\ut\tvguide.xml" "+0200" "+0000"
This is a shourt cut for me...
//Johan
Sweden