alexgisby / imgur-album-downloader

Python script/class to download an entire Imgur album in one go into a folder of your choice.
MIT License
340 stars 59 forks source link

Ordered files #2

Closed lemuelf closed 12 years ago

lemuelf commented 12 years ago

This PR does 2 things:

  1. Cleans up the file so it adheres to the PEP8 Python Style Guide (I used SublimeLinter to do the cleaning up)
  2. Prefixes the images with the sequence number of the images in the imgur album so the files can be sorted by its original ordering in the album.

I'm not sure if we want to preserve the original filenames of the files, but if we want that, we can make the addition of the ordering prefix an optional behavior, i.e. by adding a command line option of --ordered, for example. Just let me know if we want that and I'll do it.

alexgisby commented 12 years ago

Hey sorry I've only just spotted this. Some great additions there, it hadn't even occurred to me to keep the order the same as in the album. I'm happy to merge this in as-is, and thanks for the contribution!