From a355aee718ad46c9195f9c85f5dd3b476d5bef42 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 2 May 2021 13:30:57 +0200 Subject: [PATCH] Direct paths: set exclude=0 and allAudio=0 in video path table --- resources/lib/kodi_db/video.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/resources/lib/kodi_db/video.py b/resources/lib/kodi_db/video.py index 47fc9559..2c3e8a74 100644 --- a/resources/lib/kodi_db/video.py +++ b/resources/lib/kodi_db/video.py @@ -45,13 +45,15 @@ class KodiVideoDB(common.KodiDBBase): strContent, strScraper, noUpdate, - exclude) - VALUES (?, ?, ?, ?, ?) + exclude, + allAudio) + VALUES (?, ?, ?, ?, ?, ?) ''' self.cursor.execute(query, (path, kind, 'metadata.local', 1, + 0, 0)) @db.catch_operationalerrors @@ -108,11 +110,13 @@ class KodiVideoDB(common.KodiDBBase): idParentPath, strContent, strScraper, - noUpdate) - VALUES (?, ?, ?, ?, ?, ?) + noUpdate, + exclude, + allAudio) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) ''', (path, date_added, id_parent_path, content, - scraper, 1)) + scraper, 1, 0, 0)) pathid = self.cursor.lastrowid return pathid