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
Import new tvguide.xml file from within MediaPortal
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="bombonator" data-source="post: 49514" data-attributes="member: 10415"><p>EDIT --turned out not fun at all until I tried on another computer and the autorun did work, dunno why it worked on 1 PC but not the other - YMMV too. </p><p></p><p>The following files need to be in the root of your USB Drive.</p><p></p><p>Simplest form of Autorun.inf for USB Drive:</p><p></p><p>[code][autorun]</p><p>action=EPGUpdaterUSB</p><p>shellexecute=EPGUpdaterUSB.cmd[/code]</p><p></p><p>Basic batch file (EPGUpdaterUSB.cmd) to do the copying (important stuff is between the first ==== lines, you'll need to change at least 1 path):</p><p></p><p>[code]@echo off</p><p>setlocal</p><p>echo.</p><p>echo Autorun USB Drive TVGuide Updater!</p><p>echo.</p><p></p><p>rem ==========================================================</p><p>rem Set parameters to control execution.</p><p>rem Possible Values: 1=On. 0, not set, or any other value=Off.</p><p>SET ENABLECOPYTOUSB=1</p><p>SET ENABLECOPYFROMUSB=1</p><p>rem Set paths to copy from/to.</p><p>SET SOURCETVGUIDEPATH=C:\PathWhereYourGuideDataIsDownloaded</p><p>SET DESTINATIONTVGUIDEPATH=C:\Program Files\Team MediaPortal\MediaPortal\xmltv</p><p>rem ==========================================================</p><p></p><p>IF /I NOT "%ENABLECOPYTOUSB%"=="1" GOTO CopyToUSBEnd</p><p>echo.</p><p>rem ==========================================================</p><p>IF EXIST "%SOURCETVGUIDEPATH%\tvguide.xml" copy "%SOURCETVGUIDEPATH%\tvguide.xml" .</p><p>rem ==========================================================</p><p>echo.</p><p>echo Copy downloaded TVGuide to USB Drive Done!</p><p>:CopyToUSBEnd</p><p></p><p>IF /I NOT "%ENABLECOPYFROMUSB%"=="1" GOTO CopyFromUSBEnd</p><p>echo.</p><p>rem ==========================================================</p><p>IF EXIST "%DESTINATIONTVGUIDEPATH%\*.*" copy tvguide.xml "%DESTINATIONTVGUIDEPATH%"</p><p>rem ==========================================================</p><p>echo.</p><p>echo Copy TVGuide from USB Drive to MediaPortal Done!</p><p>:CopyFromUSBEnd</p><p></p><p>endlocal[/code]</p><p></p><p>It can copy to and from the USB Drive.</p><p></p><p>NOTE: The "IF EXIST ..." commands between ==== lines should all be on single line, not on 2 lines as it can appear here. The SET= lines can also appear like that, the paths cannot wrap to the next line in the batch file.</p></blockquote><p></p>
[QUOTE="bombonator, post: 49514, member: 10415"] EDIT --turned out not fun at all until I tried on another computer and the autorun did work, dunno why it worked on 1 PC but not the other - YMMV too. The following files need to be in the root of your USB Drive. Simplest form of Autorun.inf for USB Drive: [code][autorun] action=EPGUpdaterUSB shellexecute=EPGUpdaterUSB.cmd[/code] Basic batch file (EPGUpdaterUSB.cmd) to do the copying (important stuff is between the first ==== lines, you'll need to change at least 1 path): [code]@echo off setlocal echo. echo Autorun USB Drive TVGuide Updater! echo. rem ========================================================== rem Set parameters to control execution. rem Possible Values: 1=On. 0, not set, or any other value=Off. SET ENABLECOPYTOUSB=1 SET ENABLECOPYFROMUSB=1 rem Set paths to copy from/to. SET SOURCETVGUIDEPATH=C:\PathWhereYourGuideDataIsDownloaded SET DESTINATIONTVGUIDEPATH=C:\Program Files\Team MediaPortal\MediaPortal\xmltv rem ========================================================== IF /I NOT "%ENABLECOPYTOUSB%"=="1" GOTO CopyToUSBEnd echo. rem ========================================================== IF EXIST "%SOURCETVGUIDEPATH%\tvguide.xml" copy "%SOURCETVGUIDEPATH%\tvguide.xml" . rem ========================================================== echo. echo Copy downloaded TVGuide to USB Drive Done! :CopyToUSBEnd IF /I NOT "%ENABLECOPYFROMUSB%"=="1" GOTO CopyFromUSBEnd echo. rem ========================================================== IF EXIST "%DESTINATIONTVGUIDEPATH%\*.*" copy tvguide.xml "%DESTINATIONTVGUIDEPATH%" rem ========================================================== echo. echo Copy TVGuide from USB Drive to MediaPortal Done! :CopyFromUSBEnd endlocal[/code] It can copy to and from the USB Drive. NOTE: The "IF EXIST ..." commands between ==== lines should all be on single line, not on 2 lines as it can appear here. The SET= lines can also appear like that, the paths cannot wrap to the next line in the batch file. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
Import new tvguide.xml file from within MediaPortal
Contact us
RSS
Top
Bottom