From 794f9c8b85def2ecb50056c901f926dc771a4c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Tue, 11 Jun 2024 05:11:56 +0000 Subject: [PATCH] Remove kodi_six: py2_encode --- jellyfin_kodi/objects/movies.py | 4 +--- jellyfin_kodi/objects/musicvideos.py | 4 +--- jellyfin_kodi/objects/tvshows.py | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/jellyfin_kodi/objects/movies.py b/jellyfin_kodi/objects/movies.py index 58b960595..cc180338b 100644 --- a/jellyfin_kodi/objects/movies.py +++ b/jellyfin_kodi/objects/movies.py @@ -5,8 +5,6 @@ from urllib.parse import urlencode -from kodi_six.utils import py2_encode - from .. import downloader as server from ..database import jellyfin_db, queries as QUEM from ..helper import ( @@ -241,7 +239,7 @@ def get_path_filename(self, obj): else: obj["Path"] = "plugin://plugin.video.jellyfin/%s/" % obj["LibraryId"] params = { - "filename": py2_encode(obj["Filename"], "utf-8"), + "filename": obj["Filename"], "id": obj["Id"], "dbid": obj["MovieId"], "mode": "play", diff --git a/jellyfin_kodi/objects/musicvideos.py b/jellyfin_kodi/objects/musicvideos.py index 1157f75a6..22632d3d1 100644 --- a/jellyfin_kodi/objects/musicvideos.py +++ b/jellyfin_kodi/objects/musicvideos.py @@ -7,8 +7,6 @@ import re from urllib.parse import urlencode -from kodi_six.utils import py2_encode - from ..database import jellyfin_db, queries as QUEM from ..helper import api, stop, validate, jellyfin_item, values, Local, LazyLogger from ..helper.utils import find_library @@ -210,7 +208,7 @@ def get_path_filename(self, obj): else: obj["Path"] = "plugin://plugin.video.jellyfin/%s/" % obj["LibraryId"] params = { - "filename": py2_encode(obj["Filename"], "utf-8"), + "filename": obj["Filename"], "id": obj["Id"], "dbid": obj["MvideoId"], "mode": "play", diff --git a/jellyfin_kodi/objects/tvshows.py b/jellyfin_kodi/objects/tvshows.py index 02016cf3f..ee6dbd7c3 100644 --- a/jellyfin_kodi/objects/tvshows.py +++ b/jellyfin_kodi/objects/tvshows.py @@ -7,8 +7,6 @@ from ntpath import dirname from urllib.parse import urlencode -from kodi_six.utils import py2_encode - from .. import downloader as server from ..database import jellyfin_db, queries as QUEM from ..helper import ( @@ -535,7 +533,7 @@ def get_episode_path_filename(self, obj): obj["SeriesId"], ) params = { - "filename": py2_encode(obj["Filename"], "utf-8"), + "filename": obj["Filename"], "id": obj["Id"], "dbid": obj["EpisodeId"], "mode": "play",