Skip over au PAY videos in the future #5

This commit is contained in:
gg 2023-09-04 10:41:09 -07:00
parent 456fdc7129
commit 503d81954a
1 changed files with 3 additions and 1 deletions

View File

@ -74,10 +74,12 @@ end
"""
Update a schedule row with its `video_id`.
This function is for WN videos only, and it should skip over au PAY videos.
"""
function update_schedule_with_video(db, jst, video_id)
try
sql_update = "UPDATE schedule SET video_id = ? WHERE jst = ?"
sql_update = "UPDATE schedule SET video_id = ? WHERE jst = ? AND segment_id NOT IN (8)"
return DBInterface.execute(db, sql_update, [video_id, jst])
catch e
@debug e