2007-08-01, 11:47 PM
Here's the UpdateEPG.bat I use. It's in the gbpvr folder. It's designed for MCE but a couple of changes would make it work with the Vista Utilities.
It includes logging to know when and whether certain functions worked...
NOTE! Be sure to use your own 'Headend'
EDIT: It also uses Jim_'s I-XMLTV listings enhancer. That's totally optional. Remove the entire I-XMLTV section from the batchfile...
Download the attached file to your GB-PVR folder and rename it to have a .bat file extension.
It includes logging to know when and whether certain functions worked...
NOTE! Be sure to use your own 'Headend'
EDIT: It also uses Jim_'s I-XMLTV listings enhancer. That's totally optional. Remove the entire I-XMLTV section from the batchfile...
Code:
@echo off
cls
echo.
echo Windows MCE Programme Listings Conversion
echo =========================================
echo.
cd c:\windows\ehome
echo. >> UpdateEPG.Log
echo %date% %time% Starting MCE EPG Update and Conversion... >> UpdateEPG.Log
echo **********Mce05EpgDownloader******************
echo.
echo %date% %time% Manualy downloading MCE Data with whurlston's utility... >> UpdateEPG.Log
echo Manualy downloading MCE Data with whurlston's utility...
echo.
Mce05EpgDownloader.exe 0008100-
echo.
echo %date% %time% Refreshing the MCE database... >> UpdateEPG.Log
echo Refreshing the MCE database...
echo.
net start "Media Center Scheduler Service"
net stop "Media Center Scheduler Service"
echo **********Mce05Epg2XmlTv**********************
echo.
echo %date% %time% Converting MCE data to XML with whurlston's utility... >> UpdateEPG.Log
echo Converting MCE data to XML with whurlston's utility...
echo.
Mce05Epg2XmlTv.exe name=1
echo.
echo **********I-XMLTV******************************
echo.
echo %date% %time% Adding extra I-XMLTV data with Jim_'s utility... >> UpdateEPG.Log
echo Adding extra I-XMLTV data with Jim_'s utility...
echo . >>I-xmltv.log
echo %Date% %Time% >>I-xmltv.log
SET MVSwitches=/md/() /mr/[] /m#/[]
SET TVSwitches=/sx /oe /se/ - /dd/() /df/Y-M-D /gd/1 /ni/* /tn/-6
REM Hawaii /tn/-10, Alaska /tn/-9, Pacific /tn/-8, Mountain /tn/-7, Central /tn/-6, Eastern /tn/-5
REM subtracting 2-hours (Central /tn/-8) will mark shows as "new" until 2AM the following day.
REM NOTE! The examples for Timezones are off by an hour. Possibily because of Daylight Savings Time
REM Copy {Outputfile from Mce05Epg2XmlTv}.xml to Temp-EPG.xml
Copy 0008100-.xml Temp-EPG.xml
I-xmltv Temp-EPG.xml %MVSwitches% %TVSwitches%
move I-xmltv.XML MCEXMLTv.xml
rem MCEXMLTV.xml is the final output file name that should be referenced in GB-PVR's Config...
I-xmltv /CC
MOVE I-xmltv.XML FIND.xml
del Temp-EPG.xml
echo %date% %time% Finished MCE EPG Update and Conversion >> UpdateEPG.Log
Rem End of File. GB-PVR will now update its EPG with the newly converted and enhanced EPG data
Download the attached file to your GB-PVR folder and rename it to have a .bat file extension.
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]