Skip to content

Commit d7b4c4d

Browse files
committed
Lyrics fix
Fixes attempting to embed lyrics causing bandcamp-dl to break when the word "track" is in an album url..
1 parent c96938e commit d7b4c4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bandcamp_dl/bandcamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def parse(self, url: str, art: bool = True, lyrics: bool = False, genres: bool =
129129
"genres": ""
130130
}
131131

132-
if "track" in page_json['url']:
132+
if "/track/" in page_json['url']:
133133
artist_url = page_json['url'].rpartition('/track/')[0]
134134
else:
135135
artist_url = page_json['url'].rpartition('/album/')[0]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers=[
1818
'Programming Language :: Python :: 3.4',
1919
]
2020
requires-python = ">=3.4"
21-
version = "0.0.16"
21+
version = "0.0.17"
2222
dependencies = [
2323
"beautifulsoup4 >= 4.13.0b2",
2424
"demjson3 >= 3.0.6",

0 commit comments

Comments
 (0)