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
General Forums
OffTopic
Had problems with time offset in xmltv
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="jojjal" data-source="post: 142211" data-attributes="member: 25937"><p>I had some problems with time offset´s in XMLTV, as it was showing the time </p><p>+0200 ahead, and in that way messing my epg up.</p><p></p><p>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..)</p><p></p><p>I found a script that change all instanses that was wrong for me in just a "blink of an eye"...</p><p></p><p>Whit this code it chan replase just anything...</p><p></p><p>[CODE]Const ForReading = 1</p><p>Const ForWriting = 2</p><p></p><p>strFileName = Wscript.Arguments(0)</p><p>strOldText = Wscript.Arguments(1)</p><p>strNewText = Wscript.Arguments(2)</p><p></p><p>Set objFSO = CreateObject("Scripting.FileSystemObject")</p><p>Set objFile = objFSO.OpenTextFile(strFileName, ForReading)</p><p></p><p>strText = objFile.ReadAll</p><p>objFile.Close</p><p>strNewText = Replace(strText, strOldText, strNewText)</p><p></p><p>Set objFile = objFSO.OpenTextFile(strFileName, ForWriting)</p><p>objFile.WriteLine strNewText</p><p>objFile.Close</p><p>[/CODE] </p><p></p><p>argumente to run it in my case is</p><p></p><p>[CODE]</p><p>cscript test.vbs "C:\ut\tvguide.xml" "+0200" "+0000"[/CODE]</p><p>as the first is what it is in the file, and second what it would change to...</p><p></p><p>This is a shourt cut for me... </p><p></p><p>//Johan</p></blockquote><p></p>
[QUOTE="jojjal, post: 142211, member: 25937"] 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... [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 [/CODE] argumente to run it in my case is [CODE] cscript test.vbs "C:\ut\tvguide.xml" "+0200" "+0000"[/CODE] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
OffTopic
Had problems with time offset in xmltv
Contact us
RSS
Top
Bottom