Add method get_user_uploads_playlist.

This commit is contained in:
voussoir 2020-07-01 15:54:40 -07:00
parent 3ff5de67bc
commit e1eb53a114

View file

@ -93,6 +93,9 @@ class Youtube:
if page_token is None:
break
def get_user_uploads_playlist_id(self, uid):
user = self.youtube.channels().list(part='contentDetails', id=uid).execute()
return user['items'][0]['contentDetails']['relatedPlaylists']['uploads']
def get_user_videos(self, username=None, uid=None):
if username: