jonnekaunisto / simple-youtube-api

Object-oriented Wrapper for Youtube API in Python
https://simple-youtube-api.rtfd.io
Other
74 stars 16 forks source link

Add videos to playlist in the order they are uploaded. #44

Open anuzis opened 2 years ago

anuzis commented 2 years ago

Position is an optional parameter: https://developers.google.com/youtube/v3/docs/playlistItems/insert#request-body

By not specifying position, videos can be added to playlists in the order they're uploaded which is probably more intuitive for most cases. Currently, specifying insertion at position 0 adds videos to playlist in reverse order.

anuzis commented 2 years ago

I should mention that when bringing simple_youtube_api into my project to test this fork, it results in an error that appears unrelated to the change & occurs regardless of it.

Error attempting to run simple_youtube_api in local project: TypeError: Object of type YouTubeVideo is not JSON serializable