fixed crash in musify scraper

This commit is contained in:
Hellow2 2023-03-29 12:02:07 +02:00
parent 82e3146780
commit 8f8e7ecc15

View File

@ -530,14 +530,14 @@ class Musify(Page):
else: else:
LOGGER.debug("there is not even 1 footer in the album card") LOGGER.debug("there is not even 1 footer in the album card")
return cls.ALBUM_CACHE.append(Album( return Album(
_id=_id, _id=_id,
title=name, title=name,
source_list=source_list, source_list=source_list,
date=timestamp, date=timestamp,
album_type=album_type, album_type=album_type,
album_status=album_status album_status=album_status
)) )
@classmethod @classmethod
def get_discography(cls, url: MusifyUrl, artist_name: str = None, stop_at_level: int = 1) -> List[Album]: def get_discography(cls, url: MusifyUrl, artist_name: str = None, stop_at_level: int = 1) -> List[Album]: