added reboot back in to make sure that playcounts are imported through nfo.

This commit is contained in:
Marcel van der Veldt 2015-03-29 00:47:07 +01:00
parent 4d9a9cf139
commit 959659c1c9
2 changed files with 3 additions and 23 deletions

View file

@ -27,5 +27,6 @@ if mode == "play":
PlaybackUtils().PLAY(id) PlaybackUtils().PLAY(id)
else: else:
utils.checkKodiSources()
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)') xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)')

View file

@ -73,28 +73,6 @@ def checkKodiSources():
xbmcvfs.mkdir(musicvideoLibrary) xbmcvfs.mkdir(musicvideoLibrary)
addKodiSource("mediabrowser_musicvideos",musicvideoLibrary,"musicvideos") addKodiSource("mediabrowser_musicvideos",musicvideoLibrary,"musicvideos")
KodiAdvancedSettingsCheck()
return True
''' To be deleted once fully tested - Angel
rebootRequired = False
if not xbmcvfs.exists(dataPath + os.sep):
xbmcvfs.mkdir(dataPath)
if not xbmcvfs.exists(movieLibrary + os.sep):
xbmcvfs.mkdir(movieLibrary)
rebootRequired = True
addKodiSource("mediabrowser_movies",movieLibrary,"movies")
if not xbmcvfs.exists(tvLibrary + os.sep):
xbmcvfs.mkdir(tvLibrary)
rebootRequired = True
addKodiSource("mediabrowser_tvshows",tvLibrary,"tvshows")
if not xbmcvfs.exists(musicvideoLibrary + os.sep):
xbmcvfs.mkdir(musicvideoLibrary)
rebootRequired = True
addKodiSource("mediabrowser_musicvideos",musicvideoLibrary,"musicvideos")
rebootRequired = KodiAdvancedSettingsCheck() rebootRequired = KodiAdvancedSettingsCheck()
if rebootRequired: if rebootRequired:
@ -104,7 +82,8 @@ def checkKodiSources():
else: else:
return False return False
return True''' return True
def KodiSQL(): def KodiSQL():
if xbmc.getInfoLabel("System.BuildVersion").startswith("13"): if xbmc.getInfoLabel("System.BuildVersion").startswith("13"):