1
0
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:
Johan Andersson 2014-12-18 14:12:10 +01:00
parent efd7f46d98
commit a2e430b699

View File

@ -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"]