mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
svtplay: use context instead of statistics for filename
This commit is contained in:
parent
bdeea1e130
commit
749d00ac82
@ -136,7 +136,7 @@ def outputfilename(data, filename, raw):
|
|||||||
name = name.replace("arkiv-", "")
|
name = name.replace("arkiv-", "")
|
||||||
name = name.replace("-", ".")
|
name = name.replace("-", ".")
|
||||||
season = seasoninfo(raw)
|
season = seasoninfo(raw)
|
||||||
other = data["statistics"]["title"].replace("-", ".")
|
other = filenamify(data["context"]["title"])
|
||||||
if season:
|
if season:
|
||||||
title = "%s.%s.%s-%s-svtplay" % (name, season, other, data["videoId"])
|
title = "%s.%s.%s-%s-svtplay" % (name, season, other, data["videoId"])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user