Separate metadata from handle_url into handle_metadata, commenting

This commit is contained in:
Gio
2019-12-09 16:02:15 -06:00
parent c20bb5c338
commit c0b9ad678d
3 changed files with 20 additions and 6 deletions

View File

@@ -69,6 +69,7 @@ class PatreonExtractor(Extractor):
post["type"] = "content"
yield Message.Url, url, text.nameext_from_url(url, post)
# Metadata for post using dummy url for formatting
post.update({"metadata_only": True})
url = post.get("creator").get("image_url")
yield Message.Metadata, url, text.nameext_from_url(url, post)