Revert "Monitor for DB file path change"

This reverts commit aac22c3369.
This commit is contained in:
croneter 2018-02-21 08:01:00 +01:00
parent cc37ffd809
commit 933bd44ad5
2 changed files with 1 additions and 22 deletions

View file

@ -44,20 +44,6 @@ class Kodidb_Functions():
self.cursor = cursor
self.artwork = artwork.Artwork()
def check_path(self):
query = ' '.join((
"SELECT idPath",
"FROM path",
"WHERE strPath = ?"
))
self.cursor.execute(query, ('smb://TOMSNAS/PlexMovies/',))
try:
pathid = self.cursor.fetchone()[0]
except TypeError:
pathid = None
return pathid
def setup_path_table(self):
"""
Use with Kodi video DB

View file

@ -16,7 +16,6 @@ from playback import play_xml
import json_rpc as js
import variables as v
import state
import kodidb_functions as kodidb
###############################################################################
LOG = getLogger("PLEX." + __name__)
@ -225,7 +224,6 @@ class PlayqueueMonitor(Thread):
stopped = self.stopped
suspended = self.suspended
LOG.info("----===## Starting PlayqueueMonitor ##===----")
tested = False
while not stopped():
while suspended():
if stopped():
@ -238,10 +236,5 @@ class PlayqueueMonitor(Thread):
# compare old and new playqueue
self._compare_playqueues(playqueue, kodi_pl)
playqueue.old_kodi_pl = list(kodi_pl)
with kodidb.GetKodiDB('video') as kodi_db:
# Setup the paths for addon-paths (even when using direct paths)
if kodi_db.check_path() and not tested:
tested = True
LOG.error('NOW!')
sleep(50)
sleep(200)
LOG.info("----===## PlayqueueMonitor stopped ##===----")