1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

Update gallery_dl/extractor/reddit.py

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
This commit is contained in:
HRXN 2023-09-26 14:00:29 +02:00 committed by GitHub
parent 66613c3a32
commit ec91eeb7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,10 +115,10 @@ class RedditExtractor(Extractor):
continue
if url[0] == "/":
url = "https://www.reddit.com" + url
if (url.startswith(
"https://www.reddit.com/message/compose") or
url.startswith(
"https://reddit.com/message/compose")):
if url.startswith((
"https://www.reddit.com/message/compose",
"https://reddit.com/message/compose",
)):
continue
match = match_submission(url)