Changes that I should not have merged from master into 0.0.7
parent
abf0dd261b
commit
c74e82ba96
|
@ -51,7 +51,7 @@ from .bandcampdownloader import BandcampDownloader
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
arguments = docopt(__doc__, version='bandcamp-dl 0.0.7')
|
arguments = docopt(__doc__, version='bandcamp-dl 0.0.7-01')
|
||||||
bandcamp = Bandcamp()
|
bandcamp = Bandcamp()
|
||||||
|
|
||||||
basedir = arguments['--base-dir'] or os.getcwd()
|
basedir = arguments['--base-dir'] or os.getcwd()
|
||||||
|
|
|
@ -53,7 +53,7 @@ class BandcampDownloader:
|
||||||
path = path.replace("%{title}", slugify(track['title']))
|
path = path.replace("%{title}", slugify(track['title']))
|
||||||
path = u"{0}/{1}.{2}".format(self.directory, path, "mp3")
|
path = u"{0}/{1}.{2}".format(self.directory, path, "mp3")
|
||||||
|
|
||||||
return path.encode('utf-8')
|
return path
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_directory(filename: str) -> str:
|
def create_directory(filename: str) -> str:
|
||||||
|
@ -139,7 +139,7 @@ class BandcampDownloader:
|
||||||
self.write_id3_tags(filepath, track_meta)
|
self.write_id3_tags(filepath, track_meta)
|
||||||
if album['art']:
|
if album['art']:
|
||||||
try:
|
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)
|
r = requests.get(album['art'], stream=True)
|
||||||
f.write(r.content)
|
f.write(r.content)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ here = path.abspath(path.dirname(__file__))
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='bandcamp-downloader',
|
name='bandcamp-downloader',
|
||||||
version='0.0.7',
|
version='0.0.7-01',
|
||||||
description='bandcamp-dl downloads albums and tracks from Bandcamp for you',
|
description='bandcamp-dl downloads albums and tracks from Bandcamp for you',
|
||||||
long_description=open('README.rst').read(),
|
long_description=open('README.rst').read(),
|
||||||
url='https://github.com/iheanyi/bandcamp-dl',
|
url='https://github.com/iheanyi/bandcamp-dl',
|
||||||
|
|
Loading…
Reference in New Issue