pull/3/head
Michael K. Steinberg 2023-02-10 21:23:08 +02:00
rodzic 36ead220fa
commit 986f46bb9e
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -146,7 +146,7 @@ def download_category_playlists(category_id, category_index, category_ids, downl
playlist = scraper.get_playlist(playlist_id)
playlist.export_to_file()
if not download_meta_data_only:
full_download(f'{settings.DEFAULT_DOWNLOAD_DIRECTORY}', identifier=playlist.href, thread_count=15)
full_download(f'{settings.DEFAULT_DOWNLOAD_DIRECTORY}', identifier=playlist.href, recursive=True, recursive_album=True, recursive_artist=True)
except Exception as ex:
console.error(f'Scraping categories exception: {ex}')

Wyświetl plik

@ -35,6 +35,7 @@ class SpotifyArtist:
def get_this_is_playlist(self, scraper) -> str:
if 'this_is_playlist_id' in self.__dict__ and self.this_is_playlist_id:
return self.this_is_playlist_id
self.this_is_playlist_id = ''
this_is = requests.utils.quote(f'this is {self.name}')
search_results = scraper.get(f'https://api.spotify.com/v1/search?type=playlist&q={this_is}&market=IL').json()
for playlist_json in search_results['playlists']['items']: