From 94a08f0bcbfa1b0c456071630e3a97217bd1410a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 9 Jul 2020 18:19:33 +0200 Subject: [PATCH] [reddit] limit title length in default filenames (#873) --- gallery_dl/extractor/reddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index 6331b774..30a5bf78 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -17,7 +17,7 @@ class RedditExtractor(Extractor): """Base class for reddit extractors""" category = "reddit" directory_fmt = ("{category}", "{subreddit}") - filename_fmt = "{id} {title[:242]}.{extension}" + filename_fmt = "{id} {title[:220]}.{extension}" archive_fmt = "{filename}" cookiedomain = None