TheFox / flickr-cli

A command-line interface to Flickr. Upload and download photos, photo sets, directories via shell.
https://fox21.at
25 stars 9 forks source link

Nothing is downloaded when trying to download photoset #25

Closed ruzickap closed 6 years ago

ruzickap commented 6 years ago

Hello.

I'm able to download photos from Flickr downloading all photos using the command:

$ ./application.php download -d full_download
[2017-11-03 11:01:35] INFO: start
[2017-11-03 11:01:35] INFO: Config file: config.yml
[2017-11-03 11:01:35] INFO: Downloading to Album-based directories in: full_download
[2017-11-03 11:01:36] INFO: [photoset] 2016.02.15-Malaisie_Singapur
[2017-11-03 11:01:36] INFO: [dir] create: full_download/2016.02.15-Malaisie_Singapur
[2017-11-03 11:01:36] INFO: [photoset] 2016.02.15-Malaisie_Singapur: get photo list
[2017-11-03 11:01:36] INFO: [page] 1
[2017-11-03 11:01:36] DEBUG: [media] 1/0 35854006215
[2017-11-03 11:01:37] INFO: [photo] 35854006215, farm 5, server 4265, 20160215-174519.jpg, 'Fičíme in Kuala Lumpur', N/A
^Cile] 1,396,736 598.02kB/s

It's working fine, but when I'm using the specific photoset (2016.02.15-Malaisie_Singapur) nothing is downloaded :-(

$ ./application.php download -d test '2016.02.15-Malaisie_Singapur'
[2017-11-03 11:01:55] INFO: start
[2017-11-03 11:01:55] INFO: Config file: config.yml
[2017-11-03 11:01:55] INFO: Downloading to Album-based directories in: test
PHP Warning:  Invalid argument supplied for foreach() in /tmp/flickr-cli/src/TheFox/FlickrCli/Command/DownloadCommand.php on line 214
PHP Warning:  Invalid argument supplied for foreach() in /tmp/flickr-cli/src/TheFox/FlickrCli/Command/DownloadCommand.php on line 224
[2017-11-03 11:01:56] INFO: [main] total downloaded: 0
[2017-11-03 11:01:56] INFO: [main] total files:      0
[2017-11-03 11:01:56] INFO: [main] end
[2017-11-03 11:01:56] INFO: exit

Am I doing something wrong?

Thank you

TheFox commented 6 years ago

Hey, thank you for creating this issue. I fixed it. Can you please pull the newest version on master and run it again. Br, Christian