manabutameni/Imgur

Over the past few days, albums are downloading 0 byte files

Closed this issue · 3 comments

Hi,

Let's start with a sincere 'thank you!' for a great shell script. I use it regularly and truly think it's a great script.

Over the past few days, I've been noticing that albums I attempt to download are returning 0 byte files.

Running the script with the -d parameter, I see this:

imgur -d http://imgur.com/a/MXTjA
[0] DEBUG: Debug Flag Raised
[0] DEBUG: All system requirements met.
[0] DEBUG: Script Version: 0.92
[0] DEBUG: Passed arguments to main: http://imgur.com/a/MXTjA
[0] DEBUG: html temp = /tmp/imgur.WudNe.html
[0] DEBUG: urls to parse: http://imgur.com/a/MXTjA
[0] DEBUG: Downloading html source (http://imgur.com/a/MXTjA)...
[1] DEBUG: Parsing HTML...
[1] DEBUG: Urls parsed: MXTjA
[1] DEBUG: Full album_urls list: MXTjA
[1] DEBUG: Truncated album_urls: MXTjA
folder_name: Random_Album
[1] DEBUG: folder_name = Random_Album
[1] DEBUG: permalink: Random_Album/permalink.txt
[1] DEBUG: Total images = 242
[1] DEBUG: data_index: 0
[1] DEBUG: image_url dethumbnailed: //i.imgur.com/E2ITg.jpg
[1] DEBUG: Downloading image: 1
[1] DEBUG: curl -s //i.imgur.com/E2ITg.jpg > Random_Album/0.jpg
[1] DEBUG: failed to download: //i.imgur.com/E2ITg.jpg \n
[1] DEBUG: New Image Name: 00000.jpg

over and over, one for every image in the album.

If I manually browse to the album in a regular web browser, the images are correctly displayed.

I'm guessing that imgur has made some sort of change, but am not certain.

Anyway, here's hoping you're working on a fix, but on the off chance you hadn't been told about this or if it is is the first time it's being reported, I wanted you to know.

Thanks again,
-Ray

I'm having the same issue. I was actually using an older version of the imgur script and the error response I got was that the URLs were malformatted. I upgraded to the most recent version of the script and got what Ray saw.

Solved by giodamelio

giodamelio@d7cbc6f

Thank you so much for posting this. I tested the latest version only on my mac which doesn't seem to have this error.

I'm going to apply a few of the patches others have recommended, when I do, please update to the latest version and test with the album again.