From 33f97662d7195d397cb662218432fcf8451300ae Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 14 Sep 2023 18:04:43 +0200 Subject: [PATCH] dsaf --- src/music_kraken/pages/encyclopaedia_metallum.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/music_kraken/pages/encyclopaedia_metallum.py b/src/music_kraken/pages/encyclopaedia_metallum.py index 41fbb22..289434c 100644 --- a/src/music_kraken/pages/encyclopaedia_metallum.py +++ b/src/music_kraken/pages/encyclopaedia_metallum.py @@ -462,10 +462,6 @@ class EncyclopaediaMetallum(Page): artist.notes = band_notes discography: List[Album] = self._fetch_artist_discography(artist_id) - if stop_at_level > 1: - for album in discography: - for source in album.source_collection.get_sources_from_page(self.SOURCE_TYPE): - album.merge(self._fetch_album_from_source(source, stop_at_level=stop_at_level-1)) artist.main_album_collection.extend(discography) return artist @@ -586,13 +582,7 @@ class EncyclopaediaMetallum(Page): soup = self.get_soup_from_response(r) - album = self._parse_album_attributes(soup, stop_at_level=stop_at_level) - - if stop_at_level > 1: - for song in album.song_collection: - for source in song.source_collection.get_sources_from_page(self.SOURCE_TYPE): - song.merge(self._fetch_song_from_source(source=source, stop_at_level=stop_at_level-1)) - + album = self._parse_album_attributes(soup, stop_at_level=stop_at_level) return album def _fetch_lyrics(self, song_id: str) -> Optional[Lyrics]: