[erome] fix AttributeError for albums without tags (#7076)

fixes regression introduced in 07a9dca459
This commit is contained in:
Mike Fährmann
2025-03-01 21:18:57 +01:00
parent 71ebbfa577
commit 472ea737d8
2 changed files with 4 additions and 3 deletions

View File

@@ -66,8 +66,9 @@ class EromeExtractor(Extractor):
"user" : text.unquote(user),
"count" : len(urls),
"date" : date,
"tags" : [t.replace("+", " ")
for t in text.extract_iter(tags, "?q=", '"')],
"tags" : ([t.replace("+", " ")
for t in text.extract_iter(tags, "?q=", '"')]
if tags else ()),
"_http_headers": {"Referer": url},
}

View File

@@ -6,5 +6,5 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.29.0"
__version__ = "1.29.1-dev"
__variant__ = None