Hi HtV
Assuming that's the only problem the xml file has, it was such a simple fix that I couldnât resist.
Just run âHtV.exe [InFile] [OutFile]â after your grabber in UdateEPG.bat.
The compiled version's attached with a sample batch file. If it doesnât work its no big loss, here's the entire QB 4.5 source code... a 15-minute project while I was playing back another video I didnât really want to watch.
HTV.EXE [InFile] [OutFile]
Remove empty programme entries
Filenames must be DOS 8.3 compliant.
Assuming that's the only problem the xml file has, it was such a simple fix that I couldnât resist.
Just run âHtV.exe [InFile] [OutFile]â after your grabber in UdateEPG.bat.
The compiled version's attached with a sample batch file. If it doesnât work its no big loss, here's the entire QB 4.5 source code... a 15-minute project while I was playing back another video I didnât really want to watch.
HTV.EXE [InFile] [OutFile]
Remove empty programme entries
Filenames must be DOS 8.3 compliant.
Code:
CLA$ = LTRIM$(RTRIM$(COMMAND$))
FOR i = 1 TO LEN(CLA$)
IF MID$(CLA$, i, 1) = " " THEN FirstName! = 1
IF FirstName! <> 1 THEN InFile$ = LTRIM$(InFile$) + MID$(CLA$, i, 1)
IF FirstName! = 1 THEN OutFile$ = LTRIM$(OutFile$) + MID$(CLA$, i, 1)
NEXT i
OPEN InFile$ FOR INPUT AS #1
OPEN OutFile$ FOR OUTPUT AS #2
DO UNTIL EOF(1)
IF NOT EOF(1) THEN LINE INPUT #1, in$
IF in$ = " <programme>" THEN
n = (n + 1)
DO UNTIL LEFT$(in$, 18) = " <programme start" OR in$ = "</tv>"
LINE INPUT #1, in$
LOOP
END IF
PRINT #2, in$
IF LEFT$(in$, 18) = " <programme start" THEN P = (P + 1)
LOOP
PRINT P; " Programme listings were written to the output file"
PRINT n; " Empty listings were removed"
CLOSE
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |