MarshalX / yandex2spotify

Simple Python script that allow to import music from Yandex.Music to Spotify
https://yandex-music.rtfd.io
MIT License
228 stars 24 forks source link

yandex_music.exceptions.BadRequest #20

Closed adeepv closed 1 year ago

adeepv commented 4 years ago
2020-08-08 13:20:54,850 - INFO - Importing playlist Mehdi - Christmass Treasures...
Traceback (most recent call last):
  File "importer.py", line 242, in <module>
    Importer(spotify_client_, yandex_client_, arguments.ignore, arguments.strict_artists_search).import_all()
  File "importer.py", line 197, in import_all
    item()
  File "importer.py", line 155, in import_playlists
    tracks = self.yandex_client.tracks([track.track_id for track in playlist_tracks if track.album_id]) \
  File "/usr/local/lib/python3.8/dist-packages/yandex_music/client.py", line 34, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/yandex_music/client.py", line 1931, in tracks
    return self._get_list('track', track_ids, {'with-positions': with_positions}, timeout, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/yandex_music/client.py", line 1868, in _get_list
    result = self._request.post(url, params, timeout=timeout, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/yandex_music/utils/request.py", line 260, in post
    result = self._request_wrapper('POST', url, headers=self.headers, proxies=self.proxies, data=data,
  File "/usr/local/lib/python3.8/dist-packages/yandex_music/utils/request.py", line 212, in _request_wrapper
    raise BadRequest(message)
yandex_music.exceptions.BadRequest: {'name': 'validate', 'message': 'Parameters requirements are not met. Errors: [trackIds: Parameter value is not set]; ErrorMessages: []'}
lemonpaul commented 4 years ago

Could you send playlist link, please?

adeepv commented 4 years ago

https://music.yandex.ru/users/adeep/playlists/1032

вс, 9 авг. 2020 г., 15:41 Pavel Lamonov notifications@github.com:

Could you send playlist link, please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lemonpaul/yandex2spotify/issues/20#issuecomment-671047350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQXDPKNYN6NUIM4XEWVCLR72KQLANCNFSM4PYS37EA .

lemonpaul commented 4 years ago

Is it empty?

adeepv commented 4 years ago

No. It contains uploaded music from mp3 files. Yandex prohibit publication of this files.

пн, 24 авг. 2020 г., 06:37 Pavel Lamonov notifications@github.com:

Is it empty?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lemonpaul/yandex2spotify/issues/20#issuecomment-678886345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQXDNG7FUPO5EQTJLMFD3SCHN55ANCNFSM4PYS37EA .

lemonpaul commented 4 years ago

Ok, I got it. Import of such tracks are not supported. I will fix it soon.

MarshalX commented 1 year ago

Let me know if issues about track with UUIDs (self uploaded) is not gone