mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-25 09:16:13 +00:00
Nuke catch and silent_catch decorators from orbit
This commit is contained in:
parent
3ec71e89d6
commit
8b1c0bd1e4
3 changed files with 9 additions and 41 deletions
|
@ -8,7 +8,7 @@ import os
|
|||
from kodi_six import xbmc, xbmcvfs
|
||||
|
||||
from objects.obj import Objects
|
||||
from helper import translate, api, window, settings, dialog, event, silent_catch, JSONRPC
|
||||
from helper import translate, api, window, settings, dialog, event, JSONRPC
|
||||
from jellyfin import Jellyfin
|
||||
from helper import LazyLogger
|
||||
|
||||
|
@ -27,13 +27,17 @@ class Player(xbmc.Player):
|
|||
def __init__(self):
|
||||
xbmc.Player.__init__(self)
|
||||
|
||||
@silent_catch()
|
||||
def get_playing_file(self):
|
||||
return self.getPlayingFile()
|
||||
try:
|
||||
return self.getPlayingFile()
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
|
||||
@silent_catch()
|
||||
def get_file_info(self, file):
|
||||
return self.played[file]
|
||||
try:
|
||||
return self.played[file]
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
|
||||
def is_playing_file(self, file):
|
||||
return file in self.played
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue