Don't use RSS when force=True.
This commit is contained in:
parent
c5c67b9c69
commit
b8ab1503c3
1 changed files with 6 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue