DEFENDORe / pseudotv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
MIT License
234 stars 36 forks source link

Fix xmltv date bug with some time zones. Improve error message when it's not possible to call plex DVRs endpoint #73

Closed vexorian closed 4 years ago

vexorian commented 4 years ago

This is a bug reported in the support channel. Running pseudo at certain timezones causes the xmltv to generate malforned start/end times like "20200706192319 +02:00)" . I was able to reproduce it by adding:

    environment:
      - TZ="America/La Paz"

To my docker-compose entry. The new code takes advantage of the ISO date conversion which handles the ordering and forces UTC time.

There's also a small fix to an error log that keeps popping up from time to time when you don't have access to the DVRs endpoint in plex.