From 495dc1fcaa651ef8cf04fc90d34330211ec1ba38 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Mon, 24 Aug 2015 18:44:46 +0200 Subject: [PATCH] twitch: Don't include description in filename This can easily lead to "IOError: [Errno 36] File name too long" exceptions. --- lib/svtplay_dl/service/twitch.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/svtplay_dl/service/twitch.py b/lib/svtplay_dl/service/twitch.py index 3806241..c743363 100644 --- a/lib/svtplay_dl/service/twitch.py +++ b/lib/svtplay_dl/service/twitch.py @@ -70,10 +70,7 @@ class Twitch(Service): if options.output_auto: info = json.loads(get_http_data("https://api.twitch.tv/kraken/videos/v%s" % videoid)[1]) - if info["description"]: - options.output = "twitch-%s-%s_%s" % (info["channel"]["name"], filenamify(info["title"]), filenamify(info["description"])) - else: - options.output = "twitch-%s-%s" % (info["channel"]["name"], filenamify(info["title"])) + options.output = "twitch-%s-%s" % (info["channel"]["name"], filenamify(info["title"])) if "token" not in access: raise TwitchUrlException('video', self.url)