mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
Temporarily fixed exception
This commit is contained in:
parent
3dd0f564b7
commit
3ce3e3d1ea
@ -19,7 +19,7 @@ __lock = Lock()
|
|||||||
_ENABLE_UPDATE_STATS = True
|
_ENABLE_UPDATE_STATS = True
|
||||||
|
|
||||||
|
|
||||||
def __check_new_videos_sub(subscription: Subscription, yt_api: youtube.YoutubeAPI, progress_callback):
|
def __check_new_videos_sub(subscription: Subscription, yt_api: youtube.YoutubeAPI, progress_callback=None):
|
||||||
# Get list of videos
|
# Get list of videos
|
||||||
for item in yt_api.playlist_items(subscription.playlist_id):
|
for item in yt_api.playlist_items(subscription.playlist_id):
|
||||||
results = Video.objects.filter(video_id=item.resource_video_id, subscription=subscription)
|
results = Video.objects.filter(video_id=item.resource_video_id, subscription=subscription)
|
||||||
|
Loading…
Reference in New Issue
Block a user