fix reindex inconsitent video_type

This commit is contained in:
Simon 2025-02-16 15:34:56 +07:00
parent b2337669ca
commit 3a2701f2fa
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 2 additions and 1 deletions

View File

@ -333,6 +333,7 @@ class Reindex(ReindexBase):
# add back
video.json_data["player"] = es_meta.get("player")
video.json_data["date_downloaded"] = es_meta.get("date_downloaded")
video.json_data["video_type"] = es_meta.get("video_type")
video.json_data["channel"] = es_meta.get("channel")
if es_meta.get("playlist"):
video.json_data["playlist"] = es_meta.get("playlist")

View File

@ -322,7 +322,7 @@ class PendingList(PendingIndex):
duration = vid.get("duration")
if duration and isinstance(duration, int):
if duration > 60:
if duration > 3 * 60:
return False
return is_shorts(vid["id"])