Backport fix from 1.0.0-dev-r1, correct build command

master
AnthonyF 2021-12-09 21:59:14 -05:00
parent 1b424c90ce
commit 439be8417c
2 changed files with 11 additions and 7 deletions

View File

@ -18,7 +18,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: python -m pip install -U setuptools wheel build run: python -m pip install -U setuptools wheel build
- name: Build a binary wheel and a source tarball - 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 - name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@master
with: with:

View File

@ -94,12 +94,16 @@ def main():
urls = arguments['URL'] urls = arguments['URL']
album_list = [] album_list = []
for url in urls:
logging.debug("\n\tURL: {}".format(url)) if type(urls) is str:
album_list.append( album_list.append(bandcamp.parse(urls, not arguments['--no-art'], arguments['--embed-lyrics'],
bandcamp.parse(url, not arguments['--no-art'], arguments['--embed-lyrics'], arguments['--debug'])) arguments['--debug']))
# url is now a list of URLs. So lets make an album_list and append each parsed album to it. 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: for album in album_list:
logging.debug(" Album data:\n\t{}".format(album)) logging.debug(" Album data:\n\t{}".format(album))