Changes that I should not have merged from master into 0.0.7

master
Anthony Forsberg 2017-01-12 19:36:21 -05:00
parent abf0dd261b
commit c74e82ba96
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ from .bandcampdownloader import BandcampDownloader
def main():
arguments = docopt(__doc__, version='bandcamp-dl 0.0.7')
arguments = docopt(__doc__, version='bandcamp-dl 0.0.7-01')
bandcamp = Bandcamp()
basedir = arguments['--base-dir'] or os.getcwd()

View File

@ -53,7 +53,7 @@ class BandcampDownloader:
path = path.replace("%{title}", slugify(track['title']))
path = u"{0}/{1}.{2}".format(self.directory, path, "mp3")
return path.encode('utf-8')
return path
@staticmethod
def create_directory(filename: str) -> str:
@ -139,7 +139,7 @@ class BandcampDownloader:
self.write_id3_tags(filepath, track_meta)
if album['art']:
try:
with open("{}/cover.jpg".format(dirname), "wb") as f:
with open(dirname + "/cover.jpg", "wb") as f:
r = requests.get(album['art'], stream=True)
f.write(r.content)
except Exception as e:

View File

@ -6,7 +6,7 @@ here = path.abspath(path.dirname(__file__))
setup(
name='bandcamp-downloader',
version='0.0.7',
version='0.0.7-01',
description='bandcamp-dl downloads albums and tracks from Bandcamp for you',
long_description=open('README.rst').read(),
url='https://github.com/iheanyi/bandcamp-dl',