folders2flickr icon indicating copy to clipboard operation
folders2flickr copied to clipboard

Files deleted on flickr aren't replaced

Open lbell opened this issue 11 years ago • 5 comments

Noticed during testing that if I delete an uploaded file, folders2flickr just checks to see if it's in the history, not still on flickr and assumes it's there...

Perhaps my use case is unique, but I'm using flickr as a backup, and it would be nice to know there is a safety catch if the pic get's accidentally deleted from flickr.

Anyway, just a thought. Cheers!

lbell avatar Jan 11 '14 06:01 lbell

Originally it did this, but checked every photo in the local db against every photo on flickr. With 10k photos it would take years to finish, as each remote check required an api call. I think this is needed, but there must be a better way... On Jan 11, 2014 7:26 AM, "LBell" [email protected] wrote:

Noticed during testing that if I delete an uploaded file, folders2flickr just checks to see if it's in the history, not still on flickr and assumes it's there...

Perhaps my use case is unique, but I'm using flickr as a backup, and it would be nice to know there is a safety catch if the pic get's accidentally deleted from flickr.

Anyway, just a thought. Cheers!

— Reply to this email directly or view it on GitHubhttps://github.com/richq/folders2flickr/issues/7 .

richq avatar Jan 11 '14 09:01 richq

Interesting... perhaps we can leverage flickr.photos.search -- which unfortunately only returns the first 4,000 entries... or flickr.photosets.getPhotos and iterate through the sets...

Just brainstorming...

lbell avatar Jan 11 '14 15:01 lbell

Yeah, look up all photos in a few queries and compare that with the DB. Definitely not 1 by 1. I have a ton of sets, so even that might be too slow. Maybe something like https://secure.flickr.com/services/api/flickr.photos.getCounts.html to see if there's a mismatch by count in on disk vs online, and then do a slower more methodical set check.

richq avatar Jan 11 '14 16:01 richq

I see that photosets also returns the count - https://secure.flickr.com/services/api/flickr.photosets.getList.html - so maybe get all the sets, check the counts, then check any that don't look good would be a better back up strategy.

richq avatar Jan 11 '14 16:01 richq

photsets.getList looks promising

lbell avatar Jan 11 '14 16:01 lbell