randomdrake/nasa-apod-desktop — pull request #9 by dannejosefsson (2012-11-23 13:52:36+00:00)
Title: Fix for first run of the script and if a non-picture is encountered while  building the library

Hi,
some changes:

- The script failed me the first time, fixed this with a recalculation of the number of images in the directory.
- An indent fix.
- The script will now continue if a non-picture is encountered while building the library of pictures.
- Some extra safety in the main function, if today's picture is a non-picture and IMAGE_SCROLL is set to False.

Thanks for a good script!