Fix fanart for collections
This commit is contained in:
parent
70f5991b6d
commit
8ba30eca82
3 changed files with 29 additions and 1 deletions
|
@ -14,6 +14,7 @@ from userclient import UserClient
|
||||||
from PlexAPI import PlexAPI
|
from PlexAPI import PlexAPI
|
||||||
from PlexFunctions import GetMachineIdentifier, get_PMS_settings
|
from PlexFunctions import GetMachineIdentifier, get_PMS_settings
|
||||||
import state
|
import state
|
||||||
|
from migration import check_migration
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
@ -411,6 +412,9 @@ class InitialSetup():
|
||||||
log.info('Current Kodi video memory cache in bytes: %s' % cache)
|
log.info('Current Kodi video memory cache in bytes: %s' % cache)
|
||||||
settings('kodi_video_cache', value=cache)
|
settings('kodi_video_cache', value=cache)
|
||||||
|
|
||||||
|
# Do we need to migrate stuff?
|
||||||
|
check_migration()
|
||||||
|
|
||||||
# Optionally sign into plex.tv. Will not be called on very first run
|
# Optionally sign into plex.tv. Will not be called on very first run
|
||||||
# as plexToken will be ''
|
# as plexToken will be ''
|
||||||
settings('plex_status', value=lang(39226))
|
settings('plex_status', value=lang(39226))
|
||||||
|
|
24
resources/lib/migration.py
Normal file
24
resources/lib/migration.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
from logging import getLogger
|
||||||
|
import variables as v
|
||||||
|
from utils import compare_version, settings
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
log = getLogger("PLEX."+__name__)
|
||||||
|
|
||||||
|
|
||||||
|
def check_migration():
|
||||||
|
log.info('Checking whether we need to migrate something')
|
||||||
|
last_migration = settings('last_migrated_PKC_version')
|
||||||
|
if last_migration == v.ADDON_VERSION:
|
||||||
|
log.info('Already migrated to PKC version %s' % v.ADDON_VERSION)
|
||||||
|
return
|
||||||
|
if not last_migration:
|
||||||
|
log.info('Never migrated, so checking everything')
|
||||||
|
last_migration = '1.0.0'
|
||||||
|
|
||||||
|
if not compare_version(v.ADDON_VERSION, '1.8.2'):
|
||||||
|
log.info('Migrating to version 1.8.1')
|
||||||
|
# Set the new PKC theMovieDB key
|
||||||
|
settings('themoviedbAPIKey', value='19c90103adb9e98f2172c6a6a3d85dc4')
|
||||||
|
|
||||||
|
settings('last_migrated_PKC_version', value=v.ADDON_VERSION)
|
|
@ -68,7 +68,7 @@
|
||||||
<setting id="enableExportSongRating" type="bool" label="30525" default="false" visible="false" />
|
<setting id="enableExportSongRating" type="bool" label="30525" default="false" visible="false" />
|
||||||
<setting id="kodiplextimeoffset" type="number" label="Time difference in seconds (Koditime - Plextime)" default="0" visible="false" option="int" />
|
<setting id="kodiplextimeoffset" type="number" label="Time difference in seconds (Koditime - Plextime)" default="0" visible="false" option="int" />
|
||||||
<setting id="enableUpdateSongRating" type="bool" label="30526" default="false" visible="false" />
|
<setting id="enableUpdateSongRating" type="bool" label="30526" default="false" visible="false" />
|
||||||
<setting id="themoviedbAPIKey" type="text" default="ae06df54334aa653354e9a010f4b81cb" visible="false"/>
|
<setting id="themoviedbAPIKey" type="text" default="19c90103adb9e98f2172c6a6a3d85dc4" visible="false"/>
|
||||||
<setting id="FanArtTVAPIKey" type="text" default="639191cb0774661597f28a47e7e2bad5" visible="false"/>
|
<setting id="FanArtTVAPIKey" type="text" default="639191cb0774661597f28a47e7e2bad5" visible="false"/>
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue