From 3a2701f2fad8544805cdcdb059d480437a763432 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 16 Feb 2025 15:34:56 +0700 Subject: [PATCH] fix reindex inconsitent video_type --- backend/appsettings/src/reindex.py | 1 + backend/download/src/queue.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/appsettings/src/reindex.py b/backend/appsettings/src/reindex.py index bb4b26e2..603ebe8b 100644 --- a/backend/appsettings/src/reindex.py +++ b/backend/appsettings/src/reindex.py @@ -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") diff --git a/backend/download/src/queue.py b/backend/download/src/queue.py index d2dc4fe3..e4238c18 100644 --- a/backend/download/src/queue.py +++ b/backend/download/src/queue.py @@ -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"])