Skip to content

Commit

Permalink
[patreon] prevent HttpError for stream.mux.com URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 21, 2024
1 parent 0d3af0d commit 67c99b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gallery_dl/extractor/patreon.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ def _postfile(self, post):
postfile = post.get("post_file")
if postfile:
url = postfile["url"]
name = postfile.get("name") or self._filename(url) or url
name = postfile.get("name")
if not name:
if url.startswith("https://stream.mux.com/"):
name = url
else:
name = self._filename(url) or url
return (("postfile", url, name),)
return ()

Expand Down

0 comments on commit 67c99b1

Please sign in to comment.