not.finished file bugfix

Take into account filename changes per version when deleting the temp file at the end of the download process.
master
Anthony Forsberg 2017-05-21 13:47:37 -04:00
parent c8680f2694
commit 25e5da8cdb
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -3,7 +3,7 @@ from codecs import open
from os import path
import sys
appversion = "0.0.8-03"
appversion = "0.0.8-04"
pyversion = int("{}{}".format(sys.version_info[0], sys.version_info[1]))
if not pyversion >= 34: