fix: filtered another year
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Hazel 2024-05-10 15:20:22 +02:00
parent 75d0a83d14
commit 8426f6e2ea
1 changed files with 4 additions and 0 deletions

View File

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