mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-11 02:36:12 +00:00
Migrate to new translatePath library
This commit is contained in:
parent
a18ca8ab9e
commit
5e7901be27
12 changed files with 49 additions and 29 deletions
|
@ -12,6 +12,7 @@ import database
|
|||
from dialogs import context
|
||||
from helper import translate, settings, dialog
|
||||
from helper import LazyLogger
|
||||
from helper.utils import translate_path
|
||||
from jellyfin import Jellyfin
|
||||
|
||||
#################################################################################################
|
||||
|
@ -52,7 +53,7 @@ class Context(object):
|
|||
self.media = xbmc.getInfoLabel('ListItem.DBTYPE')
|
||||
item_id = None
|
||||
|
||||
addon_data = xbmc.translatePath("special://profile/addon_data/plugin.video.jellyfin/data.json")
|
||||
addon_data = translate_path("special://profile/addon_data/plugin.video.jellyfin/data.json")
|
||||
with open(addon_data, 'rb') as infile:
|
||||
data = json.load(infile)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue