useopc / tylerhall

Automatically exported from code.google.com/p/tylerhall
0 stars 0 forks source link

PHP Flickr Downloadr #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Resuming download after flickr times out on first run
2.
3.

What is the expected output? What do you see instead?
It resumes from the next set. It create empty folders for all the sets and jump 
to no-set images. 

What version of the product are you using? On what operating system?
the latest one on my own dedicated server running centos. 

Please provide any additional information below.

This issue is connected to download-all.php. 

The script works awesomely well. But I am facing major issues with it.

It works well. Starts downloading photos from sets in individual folders.

The problem is with Flickr servers. They randomly time out and stops the script.

I tried uncommenting the code which is designed to resume the download.

Two issues.

First, it just checks for folders (sets) and not individual images. 

Secondly, it just does not work. 

I tried running the script again in a folder which had 2 sets downloaded 
(second one was incomplete).

The script just went ahead and created folders for all the sets and jumped to 
no-set folder. 

Flickr servers are going to time out some time or the other on my massive 
library download.

I was just hoping that the script can be fixed for resuming.

And it can be improved to check for images inside folders while resuming. 

Original issue reported on code.google.com by sush...@gmail.com on 11 Feb 2009 at 3:51

GoogleCodeExporter commented 9 years ago
I've committed a new version which checks for existing photos rather than sets. 
Give
it a try and let me know if it helps.

r21

Original comment by tylerh...@gmail.com on 11 Feb 2009 at 10:57

GoogleCodeExporter commented 9 years ago
Ok. I am now running r21. 

It does not resume the downloads from where it ended the first time. 

It starts the download from scratch on a second run. 

I am running the non commercial API. Hopefully, that should not be a problem. 

I am attaching a screenshot of the ssh session. I stopped the script and re-ran 
it. 
The same files are being downloaded. 

Original comment by sush...@gmail.com on 12 Feb 2009 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by tylerh...@gmail.com on 12 Feb 2009 at 10:44