Skip to content

Commit

Permalink
Fix for #123 - ensures lockfile deleted from base directory (#124)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Nzen authored and Evolution0 committed Jul 4, 2017
1 parent 5bb969f commit abb3230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bandcamp_dl/bandcampdownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def download_album(self, album: dict) -> bool:
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:
Expand Down

0 comments on commit abb3230

Please sign in to comment.