Direct paths: set exclude=0 and allAudio=0 in video path table
This commit is contained in:
parent
f716df0c29
commit
a355aee718
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue