Fix AttributeError: 'UserPlaylist' object has no attribute 'requests' (#49)
Fixes #48
This commit is contained in:
@@ -8,14 +8,13 @@ version = "0.0.1-dev"
|
|||||||
requires-python = ">= 3.10"
|
requires-python = ">= 3.10"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"spotipy~=2.21",
|
"spotipy~=2.21.0",
|
||||||
"tidalapi~=0.7",
|
"tidalapi==0.7.6",
|
||||||
"pyyaml~=6.0",
|
"pyyaml~=6.0",
|
||||||
"tqdm~=4.64",
|
"tqdm~=4.64",
|
||||||
"sqlalchemy~=2.0"
|
"sqlalchemy~=2.0"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[tools.setuptools.packages."spotify_to_tidal"]
|
[tools.setuptools.packages."spotify_to_tidal"]
|
||||||
where = "src"
|
where = "src"
|
||||||
include = "spotify_to_tidal*"
|
include = "spotify_to_tidal*"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from tqdm import tqdm
|
|||||||
def _remove_indices_from_playlist(playlist, indices):
|
def _remove_indices_from_playlist(playlist, indices):
|
||||||
headers = {'If-None-Match': playlist._etag}
|
headers = {'If-None-Match': playlist._etag}
|
||||||
index_string = ",".join(map(str, indices))
|
index_string = ",".join(map(str, indices))
|
||||||
playlist.requests.request('DELETE', (playlist._base_url + '/items/%s') % (playlist.id, index_string), headers=headers)
|
playlist.request.request('DELETE', (playlist._base_url + '/items/%s') % (playlist.id, index_string), headers=headers)
|
||||||
playlist._reparse()
|
playlist._reparse()
|
||||||
|
|
||||||
def clear_tidal_playlist(playlist, chunk_size=20):
|
def clear_tidal_playlist(playlist, chunk_size=20):
|
||||||
|
|||||||
Reference in New Issue
Block a user