[patreon] prevent HttpError for stream.mux.com URLs

pull/5124/head
Mike Fährmann 8 months ago
parent 0d3af0d35b
commit 67c99b1366
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -64,7 +64,12 @@ class PatreonExtractor(Extractor):
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 ()

Loading…
Cancel
Save