Skip to content


Subversion checkout URL

You can clone with
Download ZIP


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

rsleventhal opened this Issue · 3 comments

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
[0] DEBUG: Debug Flag Raised
[0] DEBUG: All system requirements met.
[0] DEBUG: Script Version: 0.92
[0] DEBUG: Passed arguments to main:
[0] DEBUG: html temp = /tmp/imgur.WudNe.html
[0] DEBUG: urls to parse:
[0] DEBUG: Downloading html source (
[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: //
[1] DEBUG: Downloading image: 1
[1] DEBUG: curl -s // > Random_Album/0.jpg
[1] DEBUG: failed to download: // \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 referenced this issue from a commit in giodamelio/Imgur
@giodamelio giodamelio Prepend 'http:' to download url. Fixes #12 d7cbc6f

Solved by giodamelio



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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.