Add method get_user_uploads_playlist.
This commit is contained in:
parent
3ff5de67bc
commit
e1eb53a114
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue