Update shorts search duration to three minutes.
This commit is contained in:
parent
1626fa0585
commit
cf2027d95b
1 changed files with 3 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ def ignore_shorts_thread(rate):
|
||||||
videos = ycdldb.get_videos_by_sql('''
|
videos = ycdldb.get_videos_by_sql('''
|
||||||
SELECT * FROM videos
|
SELECT * FROM videos
|
||||||
LEFT JOIN channels ON channels.id = videos.author_id
|
LEFT JOIN channels ON channels.id = videos.author_id
|
||||||
WHERE is_shorts IS NULL AND duration < 62 AND state = "pending" AND channels.ignore_shorts = 1
|
WHERE is_shorts IS NULL AND duration < 182 AND state = "pending" AND channels.ignore_shorts = 1
|
||||||
ORDER BY published DESC
|
ORDER BY published DESC
|
||||||
LIMIT 10
|
LIMIT 10
|
||||||
''')
|
''')
|
||||||
|
|
@ -145,6 +145,8 @@ def ignore_shorts_thread(rate):
|
||||||
time.sleep(rate)
|
time.sleep(rate)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
log.debug('Checking %d videos for shorts.', len(videos))
|
||||||
|
|
||||||
with ycdldb.transaction:
|
with ycdldb.transaction:
|
||||||
for video in videos:
|
for video in videos:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue