GreekTVApp / epg-greece-cyprus

EPG parser for Greek and Cypriot channels
37 stars 8 forks source link

update digea parser #4

Closed KODIKAS-NL closed 2 years ago

KODIKAS-NL commented 2 years ago

Hi, I forked your repo and use only a small subset of the channels for the EPG of my private app and since today digea stopped working. They changed their EPG data url and it now returns a nicer json dataset. I update the parser but didn't clean up the use of regions (which isn't used anymore) but at least it works like this so hope this helps you too 😊

1nikolas commented 2 years ago

thank you very much! did you check if the timezones are parsed correctly? I have force set the timezone to Europe/Athens and the api returns utc time (i think?) image if that is the case you will have to change this line to UTC instead of Europe/Athens otherwise the times will be messed up https://github.com/GreekTVApp/epg-greece-cyprus/pull/4/commits/103219406ca7a15aad4d9f34e97db39581cb274c#diff-45a1fb80f96165fd55e783bc2fd9fa96a1e025a88aa73dee7b1495a6ac1e8002R12

KODIKAS-NL commented 2 years ago

thank you very much! did you check if the timezones are parsed correctly? I have force set the timezone to Europe/Athens and the api returns utc time (i think?) image if that is the case you will have to change this line to UTC instead of Europe/Athens otherwise the times will be messed up 1032194#diff-45a1fb80f96165fd55e783bc2fd9fa96a1e025a88aa73dee7b1495a6ac1e8002R12

The API returns the datetime in the Europe/Athens timezone, so force setting the timezone is still fine. However, I forgot that the XMLTV format does not use ISO8601 formatting and I didn't format the string correctly, I fixed that in the latest commit

1nikolas commented 2 years ago

thanks again!

KODIKAS-NL commented 2 years ago

thanks again!

Παρακαλώ! 😊