Fix for #123 - ensures lockfile deleted from base directory (#124)

* Fix for #123 - ensures lockfile deleted from base directory

__main__ created the file in base-dir but bandcampDownloader checked for it in the working
directory. As bandcampDownloader has the base-dir, this commit uses that to point in
the expected place.

* Fix #123 arguments need breathing room
master
Nicholas 2017-07-04 11:20:56 -05:00 committed by Anthony Forsberg
parent 5bb969f8d7
commit abb32308a6
1 changed files with 2 additions and 2 deletions

View File

@ -201,8 +201,8 @@ class BandcampDownloader:
if skip is False:
self.write_id3_tags(filepath, track_meta)
if os.path.isfile("{}.not.finished".format(__version__)):
os.remove("{}.not.finished".format(__version__))
if os.path.isfile("{}/{}.not.finished".format(self.directory, __version__)):
os.remove("{}/{}.not.finished".format(self.directory, __version__))
# Remove album art image as it is embedded
if self.embed_art: