From 8426f6e2ea18a6234113700a34d397a4eff51d94 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Fri, 10 May 2024 15:20:22 +0200 Subject: [PATCH] fix: filtered another year --- music_kraken/pages/musify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/music_kraken/pages/musify.py b/music_kraken/pages/musify.py index 2a9fc8f..4839eec 100644 --- a/music_kraken/pages/musify.py +++ b/music_kraken/pages/musify.py @@ -418,6 +418,10 @@ class Musify(Page): href = artist_soup["href"] if href is not None: + href_parts = href.split("/") + if len(href_parts) <= 1 or href_parts[-2] != "artist": + return + artist_src_list.append(Source(self.SOURCE_TYPE, self.HOST + href)) name_elem: BeautifulSoup = artist_soup.find("span", {"itemprop": "name"})