mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 21:56:13 +00:00
another attempt at Theme music
For illegal characters - following the same pattern as TV Tunes to make sure we match 100%
This commit is contained in:
parent
678efedd30
commit
ae07e1b4c6
2 changed files with 16 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 = xbmc.makeLegalFilename(folderName)
|
||||
folderName = utils.normalize_string(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…
Add table
Add a link
Reference in a new issue