Remove kodi_six: py2_encode

This commit is contained in:
Odd Stråbø 2024-06-11 05:11:56 +00:00
parent cd53329fb9
commit 794f9c8b85
3 changed files with 3 additions and 9 deletions

View File

@ -5,8 +5,6 @@ from __future__ import division, absolute_import, print_function, unicode_litera
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 @@ class Movies(KodiDb):
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",

View File

@ -7,8 +7,6 @@ import datetime
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 @@ class MusicVideos(KodiDb):
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",

View File

@ -7,8 +7,6 @@ import sqlite3
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 @@ class TVShows(KodiDb):
obj["SeriesId"],
)
params = {
"filename": py2_encode(obj["Filename"], "utf-8"),
"filename": obj["Filename"],
"id": obj["Id"],
"dbid": obj["EpisodeId"],
"mode": "play",