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