From b8ab1503c3b26ac55599361f0ea458738e7b2061 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 23 Oct 2020 07:44:09 -0700 Subject: [PATCH] Don't use RSS when force=True. --- ycdl/objects.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ycdl/objects.py b/ycdl/objects.py index 94dae6c..e3fd674 100644 --- a/ycdl/objects.py +++ b/ycdl/objects.py @@ -62,10 +62,13 @@ class Channel(Base): self.uploads_playlist = self.ycdldb.youtube.get_user_uploads_playlist_id(self.id) self.set_uploads_playlist_id(self.uploads_playlist) - try: - video_generator = self._rss_assisted_videos() - except exceptions.RSSAssistFailed: + if force: video_generator = self.ycdldb.youtube.get_playlist_videos(self.uploads_playlist) + else: + try: + video_generator = self._rss_assisted_videos() + except exceptions.RSSAssistFailed: + video_generator = self.ycdldb.youtube.get_playlist_videos(self.uploads_playlist) seen_ids = set() for video in video_generator: