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:
parent
2d43d00b49
commit
3dd1f0e336
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user