Don't use RSS when force=True.

This commit is contained in:
voussoir 2020-10-23 07:44:09 -07:00
parent c5c67b9c69
commit b8ab1503c3

View file

@ -62,10 +62,13 @@ class Channel(Base):
self.uploads_playlist = self.ycdldb.youtube.get_user_uploads_playlist_id(self.id) self.uploads_playlist = self.ycdldb.youtube.get_user_uploads_playlist_id(self.id)
self.set_uploads_playlist_id(self.uploads_playlist) self.set_uploads_playlist_id(self.uploads_playlist)
try: if force:
video_generator = self._rss_assisted_videos()
except exceptions.RSSAssistFailed:
video_generator = self.ycdldb.youtube.get_playlist_videos(self.uploads_playlist) 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() seen_ids = set()
for video in video_generator: for video in video_generator: