Skip to content

Commit

Permalink
Output tweaks
Browse files Browse the repository at this point in the history
Fixes #138 and #139
  • Loading branch information
Evolution0 committed Feb 6, 2018
1 parent 1521acd commit 1d82ca6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bandcamp_dl/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 /!\ ")

Expand Down
2 changes: 0 additions & 2 deletions bandcamp_dl/bandcampdownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def download_album(self, album: dict) -> bool:
"\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:
Expand Down Expand Up @@ -221,7 +220,6 @@ def write_id3_tags(self, filepath: str, meta: dict):
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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from os import path
import sys

appversion = "0.0.9-dev"
appversion = "0.0.8-09"

here = path.abspath(path.dirname(__file__))

Expand Down

0 comments on commit 1d82ca6

Please sign in to comment.