mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Change to theme music
Apparently CleanName is not CleanFileName... Using Kodi's built in method instead.
This commit is contained in:
parent
83080815ba
commit
678efedd30
1 changed files with 2 additions and 2 deletions
|
@ -174,12 +174,12 @@ def getThemeMedia():
|
|||
for item in result[u'Items']:
|
||||
itemId = item[u'Id']
|
||||
folderName = item[u'Name']
|
||||
folderName = utils.CleanName(folderName)
|
||||
folderName = xbmc.makeLegalFilename(folderName)
|
||||
itemIds[itemId] = folderName
|
||||
|
||||
# Get paths
|
||||
for itemId in itemIds:
|
||||
nfo_path = xbmc.translatePath("special://profile/addon_data/plugin.video.emby/library/%s/" % itemIds[itemId])
|
||||
nfo_path = xbmc.translatePath("special://profile/addon_data/plugin.video.emby/library/%s" % itemIds[itemId])
|
||||
# Create folders for each content
|
||||
if not xbmcvfs.exists(nfo_path):
|
||||
xbmcvfs.mkdir(nfo_path)
|
||||
|
|
Loading…
Reference in a new issue