mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
tv4play: Sometimes the value of days is None.
This commit is contained in:
parent
efd7f46d98
commit
a2e430b699
@ -160,7 +160,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
for i in jsondata["results"]:
|
||||
try:
|
||||
days = int(i["availability"]["availability_group_free"])
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
days = 999
|
||||
if days > 0:
|
||||
video_id = i["id"]
|
||||
|
Loading…
Reference in New Issue
Block a user