1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

prevent flake8 errors from comments looking like type annotations

This commit is contained in:
Mike Fährmann 2020-05-12 20:05:53 +02:00
parent 2d6724180b
commit 09cc9dbec0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -108,11 +108,11 @@ class TumblrExtractor(Extractor):
del photo["alt_sizes"]
yield self._prepare_image(photo["url"], post)
url = post.get("audio_url") # type: "audio"
url = post.get("audio_url") # type "audio"
if url and url.startswith("https://a.tumblr.com/"):
yield self._prepare(url, post)
url = post.get("video_url") # type: "video"
url = post.get("video_url") # type "video"
if url:
yield self._prepare(_original_video(url), post)