1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

Adds two fallback options for tv4 autonaming

This commit is contained in:
dalgr 2018-02-11 17:25:35 +01:00
parent e721c45acd
commit 70c94e4131

View File

@ -200,7 +200,16 @@ class Tv4play(Service, OpenGraphThumbMixin):
index = len(i["program"]["name"]) index = len(i["program"]["name"])
return "{0}.{1}{2}".format(i["title"][:index], season, i["title"][index:]) return "{0}.{1}{2}".format(i["title"][:index], season, i["title"][index:])
return i["title"] return i["title"]
return self._get_clip_info(vid)
aname = self._get_clip_info(vid)
if aname is not None:
return aname
aname = self._get_showname()
if aname is not None:
return aname
return "tv4Stream"
def _getdays(self, data, text): def _getdays(self, data, text):
try: try: