Skip to content

Commit

Permalink
add videoids right away to avoid "entity not found" error
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Oct 15, 2021
1 parent c6b3c1a commit ed6f078
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions YouTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def main():

else:
videoIds = ytmusic.search_songs(playlist['tracks'])
playlistId = ytmusic.create_playlist(name, info, 'PUBLIC' if args.public else 'PRIVATE')
ytmusic.add_playlist_items(playlistId, videoIds)
playlistId = ytmusic.create_playlist(name, info, 'PUBLIC' if args.public else 'PRIVATE', videoIds)

print("Success: created playlist \"" + name + "\"\n" +
"https://music.youtube.com/playlist?list=" + playlistId)
Expand Down

0 comments on commit ed6f078

Please sign in to comment.