Backport fix from 1.0.0-dev-r1, correct build command
parent
1b424c90ce
commit
439be8417c
|
@ -18,7 +18,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: python -m pip install -U setuptools wheel build
|
||||
- name: Build a binary wheel and a source tarball
|
||||
run: python setup.py sdist bdist_wheel
|
||||
run: python -m build .
|
||||
- name: Publish distribution to TestPyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
|
|
|
@ -94,12 +94,16 @@ def main():
|
|||
urls = arguments['URL']
|
||||
|
||||
album_list = []
|
||||
for url in urls:
|
||||
logging.debug("\n\tURL: {}".format(url))
|
||||
album_list.append(
|
||||
bandcamp.parse(url, not arguments['--no-art'], arguments['--embed-lyrics'], arguments['--debug']))
|
||||
# url is now a list of URLs. So lets make an album_list and append each parsed album to it.
|
||||
|
||||
|
||||
if type(urls) is str:
|
||||
album_list.append(bandcamp.parse(urls, not arguments['--no-art'], arguments['--embed-lyrics'],
|
||||
arguments['--debug']))
|
||||
else:
|
||||
for url in urls:
|
||||
logging.debug(f"\n\tURL: {url}")
|
||||
album_list.append(bandcamp.parse(url, not arguments['--no-art'], arguments['--embed-lyrics'],
|
||||
arguments['--debug']))
|
||||
|
||||
for album in album_list:
|
||||
logging.debug(" Album data:\n\t{}".format(album))
|
||||
|
||||
|
|
Loading…
Reference in New Issue