From 209edde50d0d4fda1fde6162741526957711ea32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Tue, 10 Nov 2020 10:52:06 +0100 Subject: [PATCH] Don't cast season to an int since it can be a string (#54) --- resources/lib/modules/iptvmanager.py | 2 +- resources/lib/viervijfzes/epg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/modules/iptvmanager.py b/resources/lib/modules/iptvmanager.py index 99e4dae..1824c75 100644 --- a/resources/lib/modules/iptvmanager.py +++ b/resources/lib/modules/iptvmanager.py @@ -80,7 +80,7 @@ class IPTVManager: title=program.program_title, subtitle=program.episode_title, description=program.description, - episode='S%dE%d' % (program.season, program.number) if program.season and program.number else None, + episode='S%sE%s' % (program.season, program.number) if program.season and program.number else None, genre=program.genre, genre_id=program.genre_id, image=program.cover, diff --git a/resources/lib/viervijfzes/epg.py b/resources/lib/viervijfzes/epg.py index 0e14e1f..e74d8c7 100644 --- a/resources/lib/viervijfzes/epg.py +++ b/resources/lib/viervijfzes/epg.py @@ -138,7 +138,7 @@ class EpgApi: episode_title=data.get('episode_title'), episode_title_original=data.get('original_title'), number=int(data.get('episode_nr')) if data.get('episode_nr') else None, - season=int(data.get('season')) if data.get('season') else None, + season=data.get('season'), genre=data.get('genre'), start=start, won_id=int(data.get('won_id')) if data.get('won_id') else None,