From 25831bd1a980631ea477ed7106520bc95804dc4c Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 27 May 2018 16:04:39 +0200 Subject: [PATCH] twitch: this should be episodename --- lib/svtplay_dl/service/twitch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/twitch.py b/lib/svtplay_dl/service/twitch.py index 9e7bfee..0df2c01 100644 --- a/lib/svtplay_dl/service/twitch.py +++ b/lib/svtplay_dl/service/twitch.py @@ -74,7 +74,7 @@ class Twitch(Service): return info = json.loads(data.text) self.output["title"] = "twitch-{0}".format(info["channel"]["name"]) - self.output["name"] = info["title"] + self.output["episodename"] = info["title"] if "token" not in access: raise TwitchUrlException('video', self.url) @@ -159,7 +159,7 @@ class Twitch(Service): name = re.search('slug: "([^"]+)"', self.get_urldata()).group(1) brodcaster = re.search('broadcaster_login: "([^"]+)"', self.get_urldata()).group(1) self.output["title"] = "twitch-{0}".format(brodcaster) - self.output["name"] = name + self.output["episodename"] = name dataj = json.loads(match.group(1)) for i in dataj: