1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

svtplay: use context instead of statistics for filename

This commit is contained in:
Johan Andersson 2015-04-16 21:58:48 +02:00
parent bdeea1e130
commit 749d00ac82

View File

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