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":