From ef4e15b1bae5501b11689f4440109b5940ae59b1 Mon Sep 17 00:00:00 2001 From: Maximilian Wagner Date: Fri, 11 Aug 2023 08:03:18 +0200 Subject: [PATCH] Manual ingest skips files that are not mp3 or mp4 now --- backend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend.py b/backend.py index 9cf8a17..2386322 100644 --- a/backend.py +++ b/backend.py @@ -497,6 +497,9 @@ def manual_ingest(): ext = '.' + file_split[-1] name = file[:-len(ext)] + if 'mp3' not in ext or 'mp4' not in ext: + continue + # if file not already in db if not len(query_db_threaded('SELECT ROWID FROM video ' 'WHERE path = :path AND name = :name AND ext = :ext',