mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Lint the scanner
This commit is contained in:
parent
0ec22766ba
commit
dc0f0df92f
@ -45,6 +45,7 @@ class Movie:
|
||||
|
||||
def to_kyoo(self):
|
||||
from ..utils import select_image
|
||||
|
||||
# For now, the API of kyoo only support one language so we remove the others.
|
||||
default_language = os.environ["LIBRARY_LANGUAGES"].split(",")[0]
|
||||
return {
|
||||
|
@ -48,6 +48,7 @@ class Show:
|
||||
|
||||
def to_kyoo(self):
|
||||
from providers.utils import select_image
|
||||
|
||||
# For now, the API of kyoo only support one language so we remove the others.
|
||||
default_language = os.environ["LIBRARY_LANGUAGES"].split(",")[0]
|
||||
return {
|
||||
|
@ -17,7 +17,8 @@ def format_date(date: date | int | None) -> str | None:
|
||||
|
||||
|
||||
def select_image(
|
||||
self: Movie | Show, type: Literal["posters"] | Literal["thumbnails"] | Literal["logos"]
|
||||
self: Movie | Show,
|
||||
type: Literal["posters"] | Literal["thumbnails"] | Literal["logos"],
|
||||
) -> str | None:
|
||||
# For now, the API of kyoo only support one language so we remove the others.
|
||||
default_language = os.environ["LIBRARY_LANGUAGES"].split(",")[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user