From b62c466c145afdf705670f5e8bad590c15ed5a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 13 Nov 2024 18:16:26 +0100 Subject: [PATCH] [flickr] fix video download URLs (#6464) continuation of 0e18fa395da9ca05f93fbcf2a10084a24042f99a fix video detection in '_file_url' --- gallery_dl/extractor/flickr.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/flickr.py b/gallery_dl/extractor/flickr.py index 23b8361c..e85a3750 100644 --- a/gallery_dl/extractor/flickr.py +++ b/gallery_dl/extractor/flickr.py @@ -57,10 +57,12 @@ class FlickrExtractor(Extractor): """Return an iterable with all relevant photo objects""" def _file_url(self, photo): - if "video" in photo: - return photo["url"] + url = photo["url"] - path, _, ext = photo["url"].rpartition(".") + if "/video/" in url: + return url + + path, _, ext = url.rpartition(".") return path + "_d." + ext