Do a video node refresh on startup
This commit is contained in:
parent
627c010fb9
commit
314ba8c0c1
1 changed files with 12 additions and 4 deletions
|
@ -1797,11 +1797,19 @@ class LibrarySync(Thread):
|
|||
window('plex_dbScan', value="true")
|
||||
log.info("Db version: %s" % settings('dbCreatedWithVersion'))
|
||||
lastTimeSync = getUnixTimestamp()
|
||||
self.syncPMStime()
|
||||
log.info("Initial start-up full sync starting")
|
||||
lastSync = getUnixTimestamp()
|
||||
librarySync = fullSync()
|
||||
# Initialize time offset Kodi - PMS
|
||||
self.syncPMStime()
|
||||
lastSync = getUnixTimestamp()
|
||||
log.info('Refreshing video nodes and playlists now')
|
||||
deletePlaylists()
|
||||
deleteNodes()
|
||||
# Kick off refresh
|
||||
if self.maintainViews() is True:
|
||||
log.info("Refresh playlists/nodes completed")
|
||||
else:
|
||||
log.error("Refresh playlists/nodes failed")
|
||||
log.info("Initial start-up full sync starting")
|
||||
librarySync = fullSync()
|
||||
window('plex_dbScan', clear=True)
|
||||
if librarySync:
|
||||
log.info("Initial start-up full sync successful")
|
||||
|
|
Loading…
Reference in a new issue