Use mark_state instead of doing the sql update here.

master
voussoir 2020-04-15 16:34:33 -07:00
parent 2f5ec40b89
commit 0562c51d6c
1 changed files with 1 additions and 5 deletions

View File

@ -269,11 +269,7 @@ class YCDLDBVideoMixin:
self.youtube_dl_function(video_id)
os.chdir(current_directory)
pairs = {
'id': video_id,
'download': 'downloaded',
}
self.sql_update(table='videos', pairs=pairs, where_key='id')
video.mark_state('downloaded', commit=False)
if commit:
self.commit()