kopia lustrzana https://github.com/Michael-K-Stein/SpotiFile
pull/3/head
rodzic
36ead220fa
commit
986f46bb9e
|
@ -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}')
|
||||
|
||||
|
|
|
@ -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']:
|
||||
|
|
Ładowanie…
Reference in New Issue