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

rsleventhal opened this Issue Oct 4, 2013 · 3 comments


None yet
3 participants


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,

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.

@giodamelio giodamelio added a commit to giodamelio/Imgur that referenced this issue Oct 17, 2013

@giodamelio giodamelio Prepend 'http:' to download url. Fixes #12 d7cbc6f

Solved by giodamelio



manabutameni commented Oct 19, 2013

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.

@manabutameni manabutameni added a commit that referenced this issue Oct 19, 2013

@manabutameni manabutameni Merge pull request #13 from giodamelio/master
Prepend 'http:' to download url. Fixes #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment