From 9a47ff00eeb505780c8d95ba9d4bfe198f40fb78 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 29 Mar 2021 23:10:41 -0700 Subject: [PATCH] Remove redundant call to mark_state during automark download. --- ycdl/ycdldb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ycdl/ycdldb.py b/ycdl/ycdldb.py index 4a64fea..6e285f8 100644 --- a/ycdl/ycdldb.py +++ b/ycdl/ycdldb.py @@ -418,9 +418,10 @@ class YCDLDBVideoMixin: return status if author.automark == 'downloaded': + # download_video contains a call to mark_state. self.download_video(video.id, commit=False) - - video.mark_state(author.automark, commit=False) + else: + video.mark_state(author.automark, commit=False) if commit: self.commit()