mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-28 03:46:13 +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
|
@ -8,7 +8,7 @@ import os
|
|||
from kodi_six import xbmc, xbmcaddon, xbmcvfs
|
||||
|
||||
from helper import translate, window, settings, addon_id, dialog
|
||||
from helper.utils import create_id
|
||||
from helper.utils import create_id, translate_path
|
||||
from helper import LazyLogger # noqa: F402
|
||||
|
||||
##################################################################################################
|
||||
|
@ -85,7 +85,7 @@ def get_device_id(reset=False):
|
|||
if client_id:
|
||||
return client_id
|
||||
|
||||
directory = xbmc.translatePath('special://profile/addon_data/plugin.video.jellyfin/')
|
||||
directory = translate_path('special://profile/addon_data/plugin.video.jellyfin/')
|
||||
|
||||
if not xbmcvfs.exists(directory):
|
||||
xbmcvfs.mkdir(directory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue