diff --git a/README.md b/README.md index 5398120..8e81ef1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ From Terminal (`/Applications/Utiliies/Terminal`), do: sudo port install py26-game Next, -[download MusicQuizzer](https://github.com/earwig/music-quizzer/tarball/v0.1) +[download MusicQuizzer](https://github.com/earwig/music-quizzer/tarball/v0.1.1) and uncompress it. Move the folder wherever you want (keep its contents intact!) and double-click on `mac_osx.sh` to use the quizzer. @@ -29,7 +29,7 @@ Next, download and install pygame from [here](http://pygame.org/ftp/pygame-1.9.2a0.win32-py2.7.msi). Finally, -[download MusicQuizzer](https://github.com/earwig/music-quizzer/zipball/v0.1) +[download MusicQuizzer](https://github.com/earwig/music-quizzer/zipball/v0.1.1) and extract it wherever you want. To use, simply double-click on the `musicquizzer` file inside (do not move or delete any of the other files). @@ -42,7 +42,7 @@ pygame and tk with: sudo apt-get install python-pygame python-tk Then, -[download MusicQuizzer](https://github.com/earwig/music-quizzer/tarball/v0.1) +[download MusicQuizzer](https://github.com/earwig/music-quizzer/tarball/v0.1.1) and execute the program with `python musicquizzer.py` from your terminal. # Usage diff --git a/musicquizzer.py b/musicquizzer.py index bb42968..ec239c0 100644 --- a/musicquizzer.py +++ b/musicquizzer.py @@ -22,7 +22,7 @@ from urllib import urlretrieve __author__ = "Ben Kurtovic" __copyright__ = "Copyright (c) 2011 by Ben Kurtovic" __license__ = "MIT License" -__version__ = "0.1" +__version__ = "0.1.1" __email__ = "ben.kurtovic@verizon.net" config_filename = "config.cfg" @@ -366,6 +366,9 @@ def do_pieces_download(pieces, status, dl_button, status_label, window): global download_complete dl_button.configure(state=DISABLED) + if not os.path.exists(piece_dir): + os.mkdir(piece_dir) + counter = 1 for piece in pieces: url = config.get("general", "base_url") + config.get(piece, "url")