fix: filtered another year
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
75d0a83d14
commit
8426f6e2ea
@ -418,6 +418,10 @@ class Musify(Page):
|
|||||||
|
|
||||||
href = artist_soup["href"]
|
href = artist_soup["href"]
|
||||||
if href is not None:
|
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))
|
artist_src_list.append(Source(self.SOURCE_TYPE, self.HOST + href))
|
||||||
|
|
||||||
name_elem: BeautifulSoup = artist_soup.find("span", {"itemprop": "name"})
|
name_elem: BeautifulSoup = artist_soup.find("span", {"itemprop": "name"})
|
||||||
|
Loading…
Reference in New Issue
Block a user