This commit is contained in:
Hellow 2023-03-17 13:11:18 +01:00
parent a27c4e28c3
commit a01ea0cfcd

View File

@ -54,6 +54,7 @@ SortOrder.IsAscending: false
X-Requested-With: XMLHttpRequest
"""
class MusifyTypes(Enum):
ARTIST = "artist"
@ -195,7 +196,6 @@ class Musify(Page):
# get the title and year
parse_title_date(anchor.get("title"))
if "-" in href:
_id = href.split("-")[-1]
@ -243,7 +243,6 @@ class Musify(Page):
else:
LOGGER.warning("got an unequal ammount than 3 small elements")
return Album(
_id=_id,
title=title,
@ -429,7 +428,6 @@ class Musify(Page):
name = anchor.text
anchor_list = album_card.find_all("a", recursive=False)
if len(anchor_list) > 0:
anchor = anchor_list[0]
@ -449,8 +447,6 @@ class Musify(Page):
if card_body is not None:
parse_release_anchor(card_body.find("a"), text_is_name=True)
card_footer_list = album_card.find_all("div", {"class": "card-footer"})
return Album(
@ -458,7 +454,6 @@ class Musify(Page):
source_list=source_list
)
@classmethod
def get_discography(cls, url: MusifyUrl) -> List[Album]:
"""