Replies: 1 comment
-
Check your credentials (re-do them) If it still doesn't work, share the playlist id |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Everyone
I have a problem with the script, as it gives me an error when creating a new playlist.
The error says that there is an invalid argument:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Scripts\spotify_to_ytmusic.exe_main.py", line 7, in
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\main.py", line 86, in main
args.func(args)
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 71, in create
_create_ytmusic(args, playlist, ytmusic)
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 62, in _create_ytmusic
playlistId = ytmusic.create_playlist(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\ytmusic.py", line 21, in create_playlist
return self.api.create_playlist(name, info, privacy, video_ids=tracks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Lib\site-packages\ytmusicapi\mixins\playlists.py", line 321, in create_playlist
response = self._send_request(endpoint, body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\EQUIPO\AppData\Local\Programs\Python\Python312\Lib\site-packages\ytmusicapi\ytmusic.py", line 241, in _send_request
raise Exception(message + error)
Exception: Server returned HTTP 400: Bad Request.
Request contains an invalid argument.
I really don't know what it could be, since I tried it with another playlist, and it worked correctly.
In 2024 it is still working, I only have this problem.
Thank you very much for your help.
Beta Was this translation helpful? Give feedback.
All reactions