Closed karrakoliko closed 4 years ago
Perhaps because of so many authorizations. For this, there is authorization by token)
Anyway this must be correctly handled
Is this playlist collective?
Is this playlist collective?
yes, it is public. https://clck.ru/PmRz5
I mean... Are there any other owners? Did you invite friends to add tracks in this playlist?
I mean... Are there any other owners? Did you invite friends to add tracks in this playlist?
no
playlist = importer.yandex_client.users_playlists_list(user_id='vlad.turchinskiy')[2]
playlist.collective
Out[5]: True
Seems like you push link "Invite a friend". I don't know how to do it no collective, but such problem has already appeared.
playlist = importer.yandex_client.users_playlists_list(user_id='vlad.turchinskiy')[2] playlist.collective Out[5]: True
Seems like you push link "Invite a friend". I don't know how to do it no collective, but such problem has already appeared.
playlist that user can create may be private (other users can't listen it) or public. may be "collective" means "public"? or this means that playlist created by user, not by YM (e.g. this is not artist's album/single, but just a some user's playlist).
there is no feature like "invite friend to create/modify playlist".
anyway, does it relate to the issue?
"Collective" doesn't mean "private" or "public". It means that more than one user can add tracks in this playlist. There is such feature. It relates to this exception:
2020-07-20 18:03:27,588 - INFO - Importing playlist ANIIML - We.Animals (2015)...
Traceback (most recent call last):
File "importer.py", line 235, in <module>
Importer(spotify_client_, yandex_client_, arguments.ignore).import_all()
File "importer.py", line 192, in import_all
item()
File "importer.py", line 160, in import_playlists
self._add_items_to_spotify(tracks, self.not_imported[playlist.title], save_tracks_callback, Type.TRACK)
File "importer.py", line 100, in _add_items_to_spotify
if item.available:
AttributeError: 'NoneType' object has no attribute 'available'
But max retries exceeded exception seems like not issue for this project. Maybe for yandex-music-api.
@lemonpaul ok, how about "human readable" error message and exception handling?
There is exception handling from spotify, maybe there will be exception handling from yandex in future.