1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

viafree: dont crash on empty episode names.

This commit is contained in:
Johan Andersson 2019-09-26 22:49:41 +02:00
parent 2d43d00b49
commit 3dd1f0e336

View File

@ -285,7 +285,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
episode = None episode = None
else: else:
title = dataj["summary"].replace("{} - ".format(dataj["format_title"]), "") 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 title = title[: len(title) - 1] # remove the last dot
if dataj["type"] == "clip": if dataj["type"] == "clip":