Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickr not working #3441

Closed
kendofriendo opened this issue Dec 22, 2022 · 9 comments
Closed

Flickr not working #3441

kendofriendo opened this issue Dec 22, 2022 · 9 comments

Comments

@kendofriendo
Copy link

kendofriendo commented Dec 22, 2022

gallery-dl "https://www.flickr.com/photos/151334312@N02/sets/72157696972300394/"

[flickr][error] NotFoundError: Requested album could not be found

image

@rudolphos
Copy link

That album doesn't exist. Or you might need to login to see it, in that case you need to use OAuth authorization in gallery-dl flags.
image

@mikf
Copy link
Owner

mikf commented Jan 1, 2023

You get a 403 error when not signed in, and then a 404 when signed in without permission to view this album, it seems:

403
You need to be signed in to see this

2023-01-01T16:07:08Z-ae8430ca-9d79-4cc0-b12b-63a5d2c30eb0@server

It appears you don’t have permission to view this album.

To "login", use gallery-dl oauth:flickr. Maybe you can access it afterwards.

@mikf mikf closed this as completed Jan 1, 2023
@orangpelupa
Copy link

got this issue too.
i think its because gallery-dl had not been added with the ability to parse flickr guess pass link.

@0nobody0
Copy link

having the [flickr][error] NotFoundError: Requested album could not be foundissue as well. the gallery appears to be public but doesn't show up on the user's main page. i set up oauth but the same issue persists. any help is greatly appreciated.

the album url is: https://www.flickr.com/photos/29956195@N08/albums/72157616593453778/

@mikf
Copy link
Owner

mikf commented Aug 29, 2024

the album url is: https://www.flickr.com/photos/29956195@N08/albums/72157616593453778/

Downloads with and without any OAuth tokens for me.

$ gallery-dl https://www.flickr.com/photos/29956195@N08/albums/72157616593453778/
flickr/UltimateGraphics/Albums/72157616… Works Translation/flickr_2870719100.jpg
flickr/UltimateGraphics/Albums/72157616… Works Translation/flickr_2869889133.jpg
flickr/UltimateGraphics/Albums/72157616… Works Translation/flickr_2870708020.jpg
...

$ gallery-dl --config-ignore https://www.flickr.com/photos/29956195@N08/albums/72157616593453778/
./gallery-dl/flickr/UltimateGraphics/Al… Works Translation/flickr_2870719100.jpg
./gallery-dl/flickr/UltimateGraphics/Al… Works Translation/flickr_2869889133.jpg
./gallery-dl/flickr/UltimateGraphics/Al… Works Translation/flickr_2870708020.jpg
...

@0nobody0
Copy link

curious - it's working here now as well. i did message the user about album permissions but maybe it was just user error. thanks for the reply.

@0nobody0
Copy link

oh my apologies - i posted the wrong url. the gallery that returns the error is https://www.flickr.com/photos/29956195@N08/albums/72157616535933159/

gallery-dl --config-ignore https://www.flickr.com/photos/29956195@N08/albums/72157616535933159/
[flickr][error] NotFoundError: Requested album could not be found

@mikf
Copy link
Owner

mikf commented Aug 30, 2024

The photosets_getInfo endpoint reports that this album does not exist and photosets_getList doesn't list it either, but it is still possible to download its photos via photosets_getPhotos when ignoring these errors.

diff --git a/gallery_dl/extractor/flickr.py b/gallery_dl/extractor/flickr.py
index e56c0f31..357f6844 100644
--- a/gallery_dl/extractor/flickr.py
+++ b/gallery_dl/extractor/flickr.py
@@ -132,8 +132,12 @@ class FlickrAlbumExtractor(FlickrExtractor):
 
     def metadata(self):
         data = FlickrExtractor.metadata(self)
-        data["album"] = self.api.photosets_getInfo(
-            self.album_id, self.user["nsid"])
+        try:
+            data["album"] = self.api.photosets_getInfo(
+                self.album_id, self.user["nsid"])
+        except Exception:
+            self.log.warning("%s: Unable to retrieve album metadata",
+                             self.album_id)
         return data
 
     def photos(self):

@0nobody0
Copy link

many thanks - that worked perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants