Lint the scanner

This commit is contained in:
Zoe Roux 2023-09-06 00:09:10 +02:00
parent 0ec22766ba
commit dc0f0df92f
3 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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]