mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 03:02:50 +01:00
[reddit] prevent exception with empty submission URLs (#2913)
This commit is contained in:
parent
464ea90d14
commit
35eddaa94e
@ -46,10 +46,10 @@ class RedditExtractor(Extractor):
|
||||
submission["created_utc"])
|
||||
yield Message.Directory, submission
|
||||
visited.add(submission["id"])
|
||||
url = submission["url"]
|
||||
submission["num"] = 0
|
||||
|
||||
if url.startswith("https://i.redd.it/"):
|
||||
url = submission["url"]
|
||||
if url and url.startswith("https://i.redd.it/"):
|
||||
text.nameext_from_url(url, submission)
|
||||
yield Message.Url, url, submission
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user