From e7bc0c1abe55e5cf85f1f9cc745e11da62976d14 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 19 Aug 2018 19:03:06 +0200 Subject: [PATCH] viafree: set episode name when its a text fixes #941 --- lib/svtplay_dl/service/viaplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index 92baa63..a6a4f9e 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -274,7 +274,7 @@ class Viaplay(Service, OpenGraphThumbMixin): if episode: try: episode = int(episode) - except TypeError: + except (TypeError, ValueError): title = episode episode = None else: