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 Photos only display thumbnails (in browse mode). Full photos in slideshow mode show "This photo is no longer available". #47

Open
William-o opened this issue Nov 18, 2017 · 11 comments

Comments

@William-o
Copy link

@William-o William-o commented Nov 18, 2017

Does not seem to make a difference whether the photos are set to private or public. I can see most of the thumbnails in browse mode as thumbnails but when I tap on a photo to see a larger size it pops up with the Flickr error message "This photo is no longer available". Slideshows result in all photos coming up with the Flickr error message image.

(BTW- thank you for making this app. This is by far the most versatile and properly implemented cloud-based photo slideshow app I have found, and the settings available satisfy almost every need I have.)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 19, 2017

I'm sorry to hear that the Flickr integration doesn't work for you. Let me try to reproduce the issue. Could it be that some security feature of Flickr is allowing Photocloud to only see a thumbnail of the picture? Let me try with my own account.

@mvysny mvysny self-assigned this Nov 29, 2017
@mvysny mvysny added the bug label Nov 29, 2017
@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 29, 2017

Reproduced, thanks!

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 29, 2017

Apparently the photo is not big enough so the 2048 size is not available. However, I am unable to detect available sizes of the photo: https://stackoverflow.com/questions/47555939/flickr-flickr-photos-getsizes-always-return-1-photo-not-found

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 29, 2017

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 29, 2017

The problem is that Flickr fails to report available photo sizes and thus photocloud assumes.that the photo of size 2048 is always available. Sometimes it is (if the photo is big enough), sometimes there isn't, and then Flickr responds ok with an image which says that the image is unavailable (WTF).

@William-o
Copy link
Author

@William-o William-o commented Nov 30, 2017

That certainly seems like an issue but I'm not confident that it can describe what's happening to my Flickr feed. I can share a url privately with you if it would help you debug but I'd rather not post it here (it is a public Flickr album, however). All the photos were uploaded at original resolution and were taken on either a Nexus 5X (12MP), a Pixel (12.4MP) or a Nikon D7200 (22MP) and 2048 sizes and larger are available. Weird... Flickr's API must have some other strange secret that is causing issues with my photos, I think.

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 30, 2017

That may be true - for example 2048 images may only be available for "pro" Flickr users. Let me try smaller images.
No need to share the images for now - I also have Private images and I'm able to reproduce the issue. Let me try a workaround with the smaller images.

@mvysny
Copy link
Owner

@mvysny mvysny commented Nov 30, 2017

It seems that fetching the image of size 1600 works for me: I am getting the actual images instead of that pesky "This photo is no longer available" photo. So this is a temporary workaround until Flickr figures out how to retrieve photo sizes properly.
Workaround will be available in PhotoCloud 1.10.1

@mvysny
Copy link
Owner

@mvysny mvysny commented Jul 8, 2018

Apparently Flickr doesn't give a shit about their broken API and will probably never fix it. Closing as won't fix, workaround has been implemented.

@mvysny mvysny closed this Jul 8, 2018
@bfx
Copy link

@bfx bfx commented Mar 4, 2020

Does the API is fixed now? Or how can I use the workaround? Actually I'm trying to open images bigger than 2048 and receive a FileNotFoundException

@mvysny
Copy link
Owner

@mvysny mvysny commented Mar 4, 2020

Unfortunately there has been no communication whatsoever from Flickr. The workaround is in place (PhotoCloud is fetching the images of size 1600 instead of the original images), however if the workaround doesn't work for you then I need to revisit the workaround.

Could you please attach the image here? You may need to zip it in a zip archive though, because of github limitations.

The problem is described at https://stackoverflow.com/questions/47555939/flickr-flickr-photos-getsizes-always-return-1-photo-not-found

Generally I need to figure out in which sizes the photo is available. There is an API call for that (getSizes()), however when I call it, Flickr responds that there is no such photo. The workaround for me is to therefore blindly fetch the photo at size 1600px. However, the photo may not exist at such size, and hence the FileNotFoundException.

So the workaround is not 100% working I guess. However, until Flickr makes getSizes() to work properly again, there is no way for PhotoCloud to learn of proper size of the image.

Which PhotoCloud version are you using please?

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

Successfully merging a pull request may close this issue.

None yet
3 participants