fix: don't add year as artist

This commit is contained in:
Hellow 2024-05-08 16:47:56 +02:00
parent e3d7ed8837
commit a0305a7a6e
2 changed files with 15 additions and 12 deletions

View File

@ -6,9 +6,9 @@ logging.getLogger().setLevel(logging.DEBUG)
if __name__ == "__main__":
commands = [
"s: #a Crystal F",
"10",
"2",
"s: #a Happy Days",
"7",
"9",
]

View File

@ -681,6 +681,9 @@ class Musify(Page):
anchor: BeautifulSoup = artist_crumb.find("a")
if anchor is not None:
href = anchor.get("href")
href_parts = href.split("/")
if not(len(href_parts) <= 1 or href_parts[-2] != "artist"):
artist_source_list: List[Source] = []
if href is not None: