Output tweaks

Fixes #138 and #139
master
Anthony Forsberg 2018-02-06 15:40:38 -05:00
parent 1521acd977
commit 1d82ca669a
3 changed files with 3 additions and 3 deletions

View File

@ -104,6 +104,8 @@ def main():
arguments['--debug'], url)
logging.debug("Initiating download process..")
bandcamp_downloader.start(album)
# Add a newline to stop prompt mangling
print("")
else:
logging.debug(" /!\ Something went horribly wrong /!\ ")

View File

@ -179,7 +179,6 @@ class BandcampDownloader:
"\r({}/{}) [{}{}] :: Downloading: {}".format(self.track_num, self.num_tracks,
"=" * done, " " * (50 - done),
filename[:-8]))
sys.stdout.flush()
local_size = os.path.getsize(filepath)
# if the local filesize before encoding doesn't match the remote filesize redownload
if local_size != file_length and attempts != 3:
@ -221,7 +220,6 @@ class BandcampDownloader:
filename = filepath.rsplit('/', 1)[1][:-8]
if not self.debugging:
sys.stdout.flush()
sys.stdout.write("\r({}/{}) [{}] :: Encoding: {}".format(self.track_num, self.num_tracks, "=" * 50, filename))
audio = MP3(filepath)

View File

@ -3,7 +3,7 @@ from codecs import open
from os import path
import sys
appversion = "0.0.9-dev"
appversion = "0.0.8-09"
here = path.abspath(path.dirname(__file__))