mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-30 04: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
|
@ -11,6 +11,7 @@ from objects.obj import Objects
|
|||
from helper import translate, api, window, settings, dialog, event, JSONRPC
|
||||
from jellyfin import Jellyfin
|
||||
from helper import LazyLogger
|
||||
from helper.utils import translate_path
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
@ -420,7 +421,7 @@ class Player(xbmc.Player):
|
|||
LOG.info("<[ transcode/%s ]", item['Id'])
|
||||
item['Server'].jellyfin.close_transcode(item['DeviceId'], item['PlaySessionId'])
|
||||
|
||||
path = xbmc.translatePath("special://profile/addon_data/plugin.video.jellyfin/temp/")
|
||||
path = translate_path("special://profile/addon_data/plugin.video.jellyfin/temp/")
|
||||
|
||||
if xbmcvfs.exists(path):
|
||||
dirs, files = xbmcvfs.listdir(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue