From 3dd1f0e336da16a6d91f67ee11c8a118f770098d Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 26 Sep 2019 22:49:41 +0200 Subject: [PATCH] viafree: dont crash on empty episode names. --- 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 1d9ff92..e8b0c9b 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -285,7 +285,7 @@ class Viaplay(Service, OpenGraphThumbMixin): episode = None else: title = dataj["summary"].replace("{} - ".format(dataj["format_title"]), "") - if title[-1] == ".": + if title and title[-1] == ".": title = title[: len(title) - 1] # remove the last dot if dataj["type"] == "clip":