Jump to content


azman

Member Since 21 Apr 2010
Offline Last Active Yesterday, 07:48
-----

Posts I've Made

In Topic: Polish EPG - New source

18 February 2024 - 21:18

The license for the WG+ program has expired
It has already been renewed and EPG production has started again.
[azman] Poland XMLTV sources are now up to date and contain data up to 7 days in advance.

In Topic: DW Deutsch

13 February 2024 - 20:54

The schedule for DW Deutsch also disappeared from the tv.wp.pl portal, only the guide for DW English remained.
It looks as if for the German version they stopped sending data to TV guide portals.
Let's hope it's temporary.

In Topic: Polish EPG - New source

2 January 2024 - 21:36

Hi Willy

 

I think I found the probable cause of this error.
If my script executes itself using the schedule, unfortunately the LastUpdate.txt file is not updated
When I do this manually by clicking on the executable bat file, LastUpdate.txt will be updated with the latest date.
 
Any tips or suggestions running on Windows 10?
Below is my script.
 
@echo off

REM -------------------Create LastUpdate txt file -----------------------------------
rem The four lines below will give you reliable YY DD MM YYYY HH Min Sec MS variables in XP Pro and higher.

for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%" & set "MS=%dt:~15,3%"
set "datestamp=%YYYY%-%MM%-%DD%"

echo datestamp: "%datestamp%"
>"LastUpdate.txt" echo %datestamp%

REM ---------- Compress XML to XZ with 7Zip -----------------------------------

cd C:\Users\azman\GOTOWE_EPG

for %%a in (*.xml) do "\Program Files\7-Zip\7z.exe" a "%%~na.xml.xz" "%%a"

REM ---------------------------------------------------------------------------

REM ---------- Transfer XZ File to FTP with WinSCP ----------------------------

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\Users\azman\GOTOWE_EPG\WinSCP.log" /ini=nul ^
  /command ^
    "open ftp://xxxxx:yyyyyyy@ftp.cluster026.hosting.ovh.net/" ^
    "lcd C:\Users\azman\GOTOWE_EPG" ^
    "cd /www" ^
    "put azman_basic.xml.xz" ^
	"put azman_misc.xml.xz" ^
    "put azman_iptv.xml.xz" ^
	"put azman_radio.xml.xz" ^
	"put azman_itvn.xml.xz" ^
	"put azman_vod_pb.xml.xz" ^
	"put LastUpdate.txt" ^
    "exit"

set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
exit /b %WINSCP_RESULT%

REM ---------------------------------------------------------------------------

This confuses me a bit, if the manual launch works ok, why is it not ok in the W10 task scheduler?


In Topic: Polish EPG - New source

1 January 2024 - 20:36

Hi Willy

 

I received the following information from user @kinolog
Is the problem in my LastUpdate.txt file that I generate when uploading files to the topoowa4 server?
The LastUpdate.txt file is generated using a bat script run by the Windows task scheduler.
EPGImport] Selected sources: ["Polska - Dodatkowy", "Polska - Podstawowy"]

[EPGImport] Downloading: http://www.topolowa4...an_basic.xml.xz to local path: /media/hdd/epgimport.tmp

[EPGImport] checkValidServer server url: http://www.topolowa4...an_basic.xml.xz

[EPGImport] download failed: <twisted.python.failure.Failure builtins.Exception: checkValidServer: wrong date format in LastUpdate.txt. Rejecting server: http://www.topolowa4.pl>

[EPGImport] Downloading: http://www.topolowa4...man_misc.xml.xz to local path: /media/hdd/epgimport.tmp

[EPGImport] checkValidServer server url: http://www.topolowa4...man_misc.xml.xz

[EPGImport] download failed: <twisted.python.failure.Failure builtins.Exception: checkValidServer: wrong date format in LastUpdate.txt. Rejecting server: http://www.topolowa4.pl>

[EPGImport] Save the EPGchache to database file /media/hdd/epg.dat ...

[EPGImport] EPG cache time updated ...

In Topic: Polish EPG - New source

26 December 2023 - 18:03

Hi
If it doesn't download releases at all, I suspect there's a problem with some file server. Fortunately, there are several of them and it should download the releases, if not from the first one, then from the next server.
 
It's best to attach the log from the EPG Importer program.
 
Also try to manually download the EPG data file to your PC.
It should load without any problems