If channel has automark download, still ignore shorts.

This commit is contained in:
voussoir 2026-03-08 17:54:54 -07:00
parent 587c8e4976
commit 6f4765ca9b

View file

@ -359,6 +359,12 @@ class YCDLDBVideoMixin:
video.id, video.id,
video.live_broadcast, video.live_broadcast,
) )
# We are not setting the video to ignored, but we'll wait for
# the next refresh to see if this livestream has ended and
# download it then.
return status
if author.ignore_shorts and video.check_is_shorts():
video.mark_state('ignored')
return status return status
# download_video contains a call to mark_state. # download_video contains a call to mark_state.
self.download_video(video.id) self.download_video(video.id)