Skip over au PAY videos in the future #5
This commit is contained in:
parent
456fdc7129
commit
503d81954a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue