mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-21 23:42:45 +00:00
Fix some style issues and one bug where param was missing
This commit is contained in:
parent
2d0d21aa2b
commit
eefe7c6fd7
5 changed files with 264 additions and 273 deletions
|
@ -2,8 +2,6 @@
|
|||
|
||||
##################################################################################################
|
||||
|
||||
import json
|
||||
import datetime
|
||||
import logging
|
||||
|
||||
from . import settings
|
||||
|
@ -16,8 +14,6 @@ LOG = logging.getLogger("JELLYFIN."+__name__)
|
|||
|
||||
|
||||
class API(object):
|
||||
|
||||
|
||||
def __init__(self, item, server=None):
|
||||
|
||||
''' Get item information in special cases.
|
||||
|
@ -71,7 +67,7 @@ class API(object):
|
|||
return cast
|
||||
|
||||
def media_streams(self, video, audio, subtitles):
|
||||
return {
|
||||
return {
|
||||
'video': video or [],
|
||||
'audio': audio or [],
|
||||
'subtitle': subtitles or []
|
||||
|
@ -161,7 +157,6 @@ class API(object):
|
|||
def validate_studio(self, studio_name):
|
||||
# Convert studio for Kodi to properly detect them
|
||||
studios = {
|
||||
|
||||
'abc (us)': "ABC",
|
||||
'fox (us)': "FOX",
|
||||
'mtv (us)': "MTV",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue