Remove redundant call to mark_state during automark download.

This commit is contained in:
voussoir 2021-03-29 23:10:41 -07:00
parent 18f617a45b
commit 9a47ff00ee
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -418,8 +418,9 @@ class YCDLDBVideoMixin:
return status return status
if author.automark == 'downloaded': if author.automark == 'downloaded':
# download_video contains a call to mark_state.
self.download_video(video.id, commit=False) self.download_video(video.id, commit=False)
else:
video.mark_state(author.automark, commit=False) video.mark_state(author.automark, commit=False)
if commit: if commit: