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
MediaPortal 1
Support
Electronic Program Guide
WebEPG
XMLTV grabber for Belgium
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="gdde" data-source="post: 13063" data-attributes="member: 11657"><p>As I'm more a unix/linux guy I use only unix commands from GNU unixutils.zip see <a href="http://unxutils.sourceforge.net" target="_blank">http://unxutils.sourceforge.net</a></p><p>I had some issues with not getting all gif's correct in the tvguide.</p><p>Solution to this is: </p><p>Just grab and then postprocess the file and correct the errors</p><p></p><p>In to xmltv folder put following files</p><p></p><p></p><p>sed.exe (stream editor (awk is even better))</p><p>cp.exe (copy command)</p><p></p><p>tvguide.bat (my unix/windows version)</p><p>-----------------------------------</p><p>rem install first python2.4</p><p>rem install then libraries pytvgrab-lib-0.5.1</p><p>rem install at last tv_grab_be_tvb</p><p>rem gets xmltv.dtd file from xmltv</p><p>rem sed = extra edits after grab</p><p>REM Grabs from <a href="http://www.teveblad.be" target="_blank">www.teveblad.be</a></p><p>rem c:</p><p>rem cd "C:\Program Files\Team MediaPortal\MediaPortal\xmltv"</p><p>REM Put here all files</p><p>:start</p><p>REM Get tvguide</p><p>C:\Python24\python C:\Python24\Scripts\tv_grab_be_tvb -o tvguide_new.xml</p><p>if errorlevel 10 goto start</p><p>REM Copy old one</p><p>cp tvguide.xml tvguide_prev.xml</p><p>REM rename een.gif to TV1.gif and other gifs</p><p>sed -f tvguide.sed tvguide_new.xml > tvguide.xml</p><p>-------------------------------------------------------------</p><p>tvguide.sed (file with multiple edits)</p><p>------------------------------</p><p>s/EEN.gif/TV1.gif/g</p><p>s/MTVNL.gif/MTV.gif/g</p><p>s/JIM.gif/JIMTV.gif/g</p><p>s/NBC\/NGC.gif/NBC.gif/g</p><p>s/ITV-MERIDIAN.gif/ITV.gif/g</p><p>s/CANAL+BLAUW.gif/CANALPLUSBLAUW.gif/g</p><p>s/CANAL+.gif/CANALPLUS.gif/g</p><p>s/ROBTV.gif/ROB.gif/g</p><p>-------------------------------</p><p></p><p>I use *.conf file with all channels as a default</p><p>"s/aaa/bbb/g" = change string aaa to bbb global means till end off line (multiple occurences in one line)</p><p>Special char "/" must be indicate with "\" (see nbc line)</p><p>Also manipulations on the whole file is possible, like adding things to sertain lines with this "sed" command.</p><p>In a dos box typing help you see 100 commands. In unix there are over 2000 commands to use " (sed is only one of them).</p><p></p><p>Last four channels we don't have in belgium but its for completeness ;-)</p></blockquote><p></p>
[QUOTE="gdde, post: 13063, member: 11657"] As I'm more a unix/linux guy I use only unix commands from GNU unixutils.zip see [url]http://unxutils.sourceforge.net[/url] I had some issues with not getting all gif's correct in the tvguide. Solution to this is: Just grab and then postprocess the file and correct the errors In to xmltv folder put following files sed.exe (stream editor (awk is even better)) cp.exe (copy command) tvguide.bat (my unix/windows version) ----------------------------------- rem install first python2.4 rem install then libraries pytvgrab-lib-0.5.1 rem install at last tv_grab_be_tvb rem gets xmltv.dtd file from xmltv rem sed = extra edits after grab REM Grabs from [url]www.teveblad.be[/url] rem c: rem cd "C:\Program Files\Team MediaPortal\MediaPortal\xmltv" REM Put here all files :start REM Get tvguide C:\Python24\python C:\Python24\Scripts\tv_grab_be_tvb -o tvguide_new.xml if errorlevel 10 goto start REM Copy old one cp tvguide.xml tvguide_prev.xml REM rename een.gif to TV1.gif and other gifs sed -f tvguide.sed tvguide_new.xml > tvguide.xml ------------------------------------------------------------- tvguide.sed (file with multiple edits) ------------------------------ s/EEN.gif/TV1.gif/g s/MTVNL.gif/MTV.gif/g s/JIM.gif/JIMTV.gif/g s/NBC\/NGC.gif/NBC.gif/g s/ITV-MERIDIAN.gif/ITV.gif/g s/CANAL+BLAUW.gif/CANALPLUSBLAUW.gif/g s/CANAL+.gif/CANALPLUS.gif/g s/ROBTV.gif/ROB.gif/g ------------------------------- I use *.conf file with all channels as a default "s/aaa/bbb/g" = change string aaa to bbb global means till end off line (multiple occurences in one line) Special char "/" must be indicate with "\" (see nbc line) Also manipulations on the whole file is possible, like adding things to sertain lines with this "sed" command. In a dos box typing help you see 100 commands. In unix there are over 2000 commands to use " (sed is only one of them). Last four channels we don't have in belgium but its for completeness ;-) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
XMLTV grabber for Belgium
Contact us
RSS
Top
Bottom