Skip to content

Commit

Permalink
merge #6077: [flickr] fix bug introduced in e92a9ae
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Aug 25, 2024
2 parents 46c3971 + 47e7be3 commit 65cae11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def _extract_metadata(self, photo):

if self.contexts:
try:
photo.update(self.api.photos_getAllContexts(photo["id"]))
photo.update(self.photos_getAllContexts(photo["id"]))
except Exception as exc:
self.log.warning(
"Unable to retrieve 'contexts' data for %s (%s: %s)",
Expand Down
8 changes: 8 additions & 0 deletions test/results/flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,28 @@
"#url" : "https://www.flickr.com/photos/departingyyz/16089302239",
"#category": ("", "flickr", "image"),
"#class" : flickr.FlickrImageExtractor,
"#options" : {
"contexts": True,
"exif": True,
},
"#pattern" : flickr.FlickrImageExtractor.pattern,
"#sha1_content": [
"3133006c6d657fe54cf7d4c46b82abbcb0efaf9f",
"0821a28ee46386e85b02b67cf2720063440a228c",
],

"camera" : "Sony ILCE-7",
"comments" : int,
"description": str,
"exif" : list,
"extension" : "jpg",
"filename" : "16089302239_de18cd8017_b",
"id" : 16089302239,
"height" : 683,
"label" : "Large",
"media" : "photo",
"pool" : list,
"set" : list,
"url" : str,
"views" : int,
"width" : 1024,
Expand Down

0 comments on commit 65cae11

Please sign in to comment.