diff --git a/ycdl/ytapi.py b/ycdl/ytapi.py index 80cb0d5..268b24d 100644 --- a/ycdl/ytapi.py +++ b/ycdl/ytapi.py @@ -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: