mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix flake8 lints
This commit is contained in:
parent
aaa7f33a77
commit
256c401ef9
3 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,8 @@ from . import translate, settings, window, dialog, api
|
|||
#################################################################################################
|
||||
|
||||
LOG = LazyLogger(__name__)
|
||||
|
||||
|
||||
class Transcode(enum.IntEnum):
|
||||
Enabled = 0
|
||||
Audio = 1
|
||||
|
@ -607,6 +609,7 @@ class PlayUtils(object):
|
|||
subs_streams.append(index)
|
||||
|
||||
skip_dialog = Transcode(int(settings('skipDialogTranscode') or 0))
|
||||
|
||||
def get_track_title(track_index):
|
||||
return streams[track_index]['DisplayTitle'] or ("Track %s" % track_index)
|
||||
|
||||
|
|
|
@ -549,6 +549,7 @@ def find_library(server, item):
|
|||
LOG.error('No ancestor found, not syncing item with ID: {}'.format(item['Id']))
|
||||
return {}
|
||||
|
||||
|
||||
def translate_path(path):
|
||||
'''
|
||||
Use new library location for translate path starting in Kodi 19
|
||||
|
@ -559,4 +560,3 @@ def translate_path(path):
|
|||
return xbmcvfs.translatePath(path)
|
||||
else:
|
||||
return xbmc.translatePath(path)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import os
|
|||
import xml.etree.ElementTree as etree
|
||||
|
||||
from six.moves.urllib.parse import urlencode
|
||||
from kodi_six import xbmc, xbmcvfs
|
||||
from kodi_six import xbmcvfs
|
||||
|
||||
from database import Database, jellyfin_db, get_sync, save_sync
|
||||
from helper import translate, api, window, event
|
||||
|
|
Loading…
Reference in a new issue