From de0fa8a715fe2ac3e9467e32803ef70b20b9902f Mon Sep 17 00:00:00 2001 From: qnorsten Date: Fri, 3 Feb 2017 09:32:27 +0100 Subject: [PATCH] svtplay: Add syntolkat and teckentolkat to filename svtplay: Readds syntolkat and teckentolkat to autogenerated filename. Solves https://github.com/spaam/svtplay-dl/issues/542 --- lib/svtplay_dl/service/svtplay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index 740a700..e34bb81 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -225,6 +225,10 @@ class Svtplay(Service, OpenGraphThumbMixin): title += ".%s" % season if other: title += ".%s" % other + if data["video"]["accessServices"]["audioDescription"]: + title+="-syntolkat" + if data["video"]["accessServices"]["signInterpretation"]: + title+="-teckentolkat" title += "-%s-svtplay" % id title = filenamify(title) if len(directory):