From 764906e1afcb72fa884c7974787a2a76cbaac928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 11 Aug 2022 12:39:19 +0200 Subject: [PATCH] allow tabstops as whitespace before input file comments (#2808) --- gallery_dl/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 277b01c5..329e7abd 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -97,6 +97,8 @@ def parse_inputfile(file, log): # url if " #" in line: line = line.partition(" #")[0] + elif "\t#" in line: + line = line.partition("\t#")[0] if gconf or lconf: yield util.ExtendedUrl(line, gconf, lconf) gconf = []