Skip to content

Commit

Permalink
Fix error for tracks without associated file
Browse files Browse the repository at this point in the history
  • Loading branch information
alej0varas committed May 30, 2024
1 parent e5d0b9e commit 49da73a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bcp/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__VERSION__ = "v0.1.4"
__VERSION__ = "v0.1.5"
2 changes: 1 addition & 1 deletion src/bcp/bandcamplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _get_tracks_from_html(html):
for script in soup.find_all("script"):
if script.has_attr("data-tralbum"):
for track in json.loads(script["data-tralbum"])["trackinfo"]:
if track["id"]:
if track["id"] and track["file"]:
info = {
"url": track["file"]["mp3-128"],
"title": track["title"],
Expand Down

0 comments on commit 49da73a

Please sign in to comment.