From ead6fb17f06f4e69d134552fcae934f9aecfbd55 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 9 Jun 2011 20:05:27 -0400 Subject: [PATCH 1/2] pretty big bugfix in piece downloading --- musicquizzer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/musicquizzer.py b/musicquizzer.py index bb42968..eba8bfd 100644 --- a/musicquizzer.py +++ b/musicquizzer.py @@ -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") From e7a251deb19bb8b6a5a81e8408826c75753190bc Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 9 Jun 2011 20:09:18 -0400 Subject: [PATCH 2/2] version bump to 0.1.1 --- README.md | 6 +++--- musicquizzer.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 eba8bfd..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"