Direct paths: set exclude=0 and allAudio=0 in video path table

This commit is contained in:
croneter 2021-05-02 13:30:57 +02:00
parent f716df0c29
commit a355aee718

View file

@ -45,13 +45,15 @@ class KodiVideoDB(common.KodiDBBase):
strContent, strContent,
strScraper, strScraper,
noUpdate, noUpdate,
exclude) exclude,
VALUES (?, ?, ?, ?, ?) allAudio)
VALUES (?, ?, ?, ?, ?, ?)
''' '''
self.cursor.execute(query, (path, self.cursor.execute(query, (path,
kind, kind,
'metadata.local', 'metadata.local',
1, 1,
0,
0)) 0))
@db.catch_operationalerrors @db.catch_operationalerrors
@ -108,11 +110,13 @@ class KodiVideoDB(common.KodiDBBase):
idParentPath, idParentPath,
strContent, strContent,
strScraper, strScraper,
noUpdate) noUpdate,
VALUES (?, ?, ?, ?, ?, ?) exclude,
allAudio)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
''', ''',
(path, date_added, id_parent_path, content, (path, date_added, id_parent_path, content,
scraper, 1)) scraper, 1, 0, 0))
pathid = self.cursor.lastrowid pathid = self.cursor.lastrowid
return pathid return pathid