mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-25 09:16: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
|
@ -12,6 +12,7 @@ from kodi_six import xbmc, xbmcvfs
|
|||
import client
|
||||
import requests
|
||||
from helper import LazyLogger
|
||||
from helper.utils import translate_path
|
||||
|
||||
from . import translate, settings, window, dialog, api
|
||||
|
||||
|
@ -548,7 +549,7 @@ class PlayUtils(object):
|
|||
''' Download external subtitles to temp folder
|
||||
to be able to have proper names to streams.
|
||||
'''
|
||||
temp = xbmc.translatePath("special://profile/addon_data/plugin.video.jellyfin/temp/")
|
||||
temp = translate_path("special://profile/addon_data/plugin.video.jellyfin/temp/")
|
||||
|
||||
if not xbmcvfs.exists(temp):
|
||||
xbmcvfs.mkdir(temp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue