mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Quick follow
To make sure it doesn't pick up the temp file Kodi creates which is the same name as the database.
This commit is contained in:
parent
0b0d1aaacc
commit
ce312bd2c8
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ def getKodiVideoDBPath():
|
||||||
dbVersion = ""
|
dbVersion = ""
|
||||||
|
|
||||||
for database in files:
|
for database in files:
|
||||||
if "MyVideos" in database:
|
if "MyVideos" in database and database.endswith("db"):
|
||||||
dbVersion = database
|
dbVersion = database
|
||||||
|
|
||||||
dbPath = xbmc.translatePath("special://database/%s" % dbVersion)
|
dbPath = xbmc.translatePath("special://database/%s" % dbVersion)
|
||||||
|
@ -81,7 +81,7 @@ def getKodiMusicDBPath():
|
||||||
dbVersion = ""
|
dbVersion = ""
|
||||||
|
|
||||||
for database in files:
|
for database in files:
|
||||||
if "MyMusic" in database:
|
if "MyMusic" in database and database.endswith("db"):
|
||||||
dbVersion = database
|
dbVersion = database
|
||||||
|
|
||||||
dbPath = xbmc.translatePath("special://database/%s" % dbVersion)
|
dbPath = xbmc.translatePath("special://database/%s" % dbVersion)
|
||||||
|
|
Loading…
Reference in a new issue