From e1eb53a114b98e294ebea5c163d903f7bf52a375 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 1 Jul 2020 15:54:40 -0700 Subject: [PATCH] Add method get_user_uploads_playlist. --- ycdl/ytapi.py | 3 +++ 1 file changed, 3 insertions(+) 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: