mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-26 23:00:36 +00:00
Remove kodi_six: py2_encode
This commit is contained in:
parent
cd53329fb9
commit
794f9c8b85
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user