We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3aded commit 921b4feCopy full SHA for 921b4fe
flickr_download/flick_download.py
@@ -245,6 +245,13 @@ def do_download_photo(
245
except Exception:
246
logging.warning("Trouble saving photo info: %s", sys.exc_info()[0])
247
248
+ if not size_label and photo._getLargestSizeLabel() == "Video Player":
249
+ # For old videos there doesn't seem to be an actual video url
250
+ # available. The largest video size ends up being a SWF video player,
251
+ # and it's the SWF that'll be downloaded...
252
+ logging.error("Video not available for: %s", get_photo_page(photo))
253
+ return
254
+
255
if os.path.exists(fname):
256
# TODO: Ideally we should check for file size / md5 here
257
# to handle failed downloads.
0 commit comments