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"})