[GH-ISSUE #192] Add_playlist_items() results in TypeError #148

Closed
opened 2026-02-27 22:08:18 +03:00 by kerem · 3 comments
Owner

Originally created by @mrlopezco on GitHub (Apr 20, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/192

Hey guys,

noobie here on my second month learning python and first time creating an issue on GitHub...
Somehow I get this error when trying to add items to a playlist:

TypeError: add_playlist_items() missing 1 required positional argument: 'videoIds'

My highly complicated code:

playlistid = 'PLUenIw9z1qHoO7Zx7t-ypSG0Q6MzoGRYH'
videoids = ["38YpUIcSaks","nYq18j1pd1g"]
YTMusic.add_playlist_items(playlistid, videoids)

The auth works fine as I was able to create a playlist with code.
Thanks!

Originally created by @mrlopezco on GitHub (Apr 20, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/192 Hey guys, noobie here on my second month learning python and first time creating an issue on GitHub... Somehow I get this error when trying to add items to a playlist: `TypeError: add_playlist_items() missing 1 required positional argument: 'videoIds'` My highly complicated code: > playlistid = 'PLUenIw9z1qHoO7Zx7t-ypSG0Q6MzoGRYH' videoids = ["38YpUIcSaks","nYq18j1pd1g"] YTMusic.add_playlist_items(playlistid, videoids) The auth works fine as I was able to create a playlist with code. Thanks!
kerem closed this issue 2026-02-27 22:08:18 +03:00
Author
Owner

@sigma67 commented on GitHub (Apr 20, 2021):

Did you create an instance of YTMusic()?

https://ytmusicapi.readthedocs.io/en/latest/usage.html

<!-- gh-comment-id:823471328 --> @sigma67 commented on GitHub (Apr 20, 2021): Did you create an instance of YTMusic()? https://ytmusicapi.readthedocs.io/en/latest/usage.html
Author
Owner

@mrlopezco commented on GitHub (Apr 20, 2021):

@sigma67 Yes, I have the json authentification all set and working as I was able to create a playlist in my YouTube music account.

<!-- gh-comment-id:823474546 --> @mrlopezco commented on GitHub (Apr 20, 2021): @sigma67 Yes, I have the json authentification all set and working as I was able to create a playlist in my YouTube music account.
Author
Owner

@sigma67 commented on GitHub (Apr 20, 2021):

Then your code should work as you posted it above.

Please continue this discussion on gitter as it's clearly not an issue with the API:
https://gitter.im/sigma67/ytmusicapi

<!-- gh-comment-id:823479604 --> @sigma67 commented on GitHub (Apr 20, 2021): Then your code should work as you posted it above. Please continue this discussion on gitter as it's clearly not an issue with the API: https://gitter.im/sigma67/ytmusicapi
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#148
No description provided.