Fix AttributError due to false import
This commit is contained in:
parent
e38f99f088
commit
b50506b891
1 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,8 @@ import sys
|
||||||
|
|
||||||
from xbmcvfs import exists
|
from xbmcvfs import exists
|
||||||
|
|
||||||
import watchdog
|
from watchdog.events import FileSystemEventHandler
|
||||||
|
from watchdog.observers import Observer
|
||||||
import playlist_func as PL
|
import playlist_func as PL
|
||||||
from PlexAPI import API
|
from PlexAPI import API
|
||||||
import kodidb_functions as kodidb
|
import kodidb_functions as kodidb
|
||||||
|
@ -364,7 +365,7 @@ def full_sync():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class PlaylistEventhandler(watchdog.events.FileSystemEventHandler):
|
class PlaylistEventhandler(FileSystemEventHandler):
|
||||||
"""
|
"""
|
||||||
PKC eventhandler to monitor Kodi playlists safed to disk
|
PKC eventhandler to monitor Kodi playlists safed to disk
|
||||||
"""
|
"""
|
||||||
|
@ -436,7 +437,7 @@ def kodi_playlist_monitor():
|
||||||
observer.stop() (and maybe observer.join()) to shut down properly
|
observer.stop() (and maybe observer.join()) to shut down properly
|
||||||
"""
|
"""
|
||||||
event_handler = PlaylistEventhandler()
|
event_handler = PlaylistEventhandler()
|
||||||
observer = watchdog.observers.Observer()
|
observer = Observer()
|
||||||
observer.schedule(event_handler, v.PLAYLIST_PATH, recursive=True)
|
observer.schedule(event_handler, v.PLAYLIST_PATH, recursive=True)
|
||||||
observer.start()
|
observer.start()
|
||||||
return observer
|
return observer
|
||||||
|
|
Loading…
Reference in a new issue