Skip to content

Commit

Permalink
Update YouTube.py
Browse files Browse the repository at this point in the history
Add the ability to use Google brand accounts when using creating playlists in YouTube Music.
  • Loading branch information
Rolln-dev authored Sep 4, 2020
1 parent f0f5634 commit 451ac9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YouTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class YTMusicTransfer:
def __init__(self):
self.api = YTMusic(settings['youtube']['headers'])
self.api = YTMusic(settings['youtube']['headers'], settings['youtube']['user_id'])

def create_playlist(self, name, info, privacy="PRIVATE", tracks=None):
return self.api.create_playlist(name, info, privacy, video_ids=tracks)
Expand Down Expand Up @@ -182,4 +182,4 @@ def main():


if __name__ == "__main__":
main()
main()

0 comments on commit 451ac9e

Please sign in to comment.