mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Remove kodi_six: py2_encode
This commit is contained in:
parent
cd53329fb9
commit
794f9c8b85
3 changed files with 3 additions and 9 deletions
|
@ -5,8 +5,6 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from kodi_six.utils import py2_encode
|
|
||||||
|
|
||||||
from .. import downloader as server
|
from .. import downloader as server
|
||||||
from ..database import jellyfin_db, queries as QUEM
|
from ..database import jellyfin_db, queries as QUEM
|
||||||
from ..helper import (
|
from ..helper import (
|
||||||
|
@ -241,7 +239,7 @@ class Movies(KodiDb):
|
||||||
else:
|
else:
|
||||||
obj["Path"] = "plugin://plugin.video.jellyfin/%s/" % obj["LibraryId"]
|
obj["Path"] = "plugin://plugin.video.jellyfin/%s/" % obj["LibraryId"]
|
||||||
params = {
|
params = {
|
||||||
"filename": py2_encode(obj["Filename"], "utf-8"),
|
"filename": obj["Filename"],
|
||||||
"id": obj["Id"],
|
"id": obj["Id"],
|
||||||
"dbid": obj["MovieId"],
|
"dbid": obj["MovieId"],
|
||||||
"mode": "play",
|
"mode": "play",
|
||||||
|
|
|
@ -7,8 +7,6 @@ import datetime
|
||||||
import re
|
import re
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from kodi_six.utils import py2_encode
|
|
||||||
|
|
||||||
from ..database import jellyfin_db, queries as QUEM
|
from ..database import jellyfin_db, queries as QUEM
|
||||||
from ..helper import api, stop, validate, jellyfin_item, values, Local, LazyLogger
|
from ..helper import api, stop, validate, jellyfin_item, values, Local, LazyLogger
|
||||||
from ..helper.utils import find_library
|
from ..helper.utils import find_library
|
||||||
|
@ -210,7 +208,7 @@ class MusicVideos(KodiDb):
|
||||||
else:
|
else:
|
||||||
obj["Path"] = "plugin://plugin.video.jellyfin/%s/" % obj["LibraryId"]
|
obj["Path"] = "plugin://plugin.video.jellyfin/%s/" % obj["LibraryId"]
|
||||||
params = {
|
params = {
|
||||||
"filename": py2_encode(obj["Filename"], "utf-8"),
|
"filename": obj["Filename"],
|
||||||
"id": obj["Id"],
|
"id": obj["Id"],
|
||||||
"dbid": obj["MvideoId"],
|
"dbid": obj["MvideoId"],
|
||||||
"mode": "play",
|
"mode": "play",
|
||||||
|
|
|
@ -7,8 +7,6 @@ import sqlite3
|
||||||
from ntpath import dirname
|
from ntpath import dirname
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from kodi_six.utils import py2_encode
|
|
||||||
|
|
||||||
from .. import downloader as server
|
from .. import downloader as server
|
||||||
from ..database import jellyfin_db, queries as QUEM
|
from ..database import jellyfin_db, queries as QUEM
|
||||||
from ..helper import (
|
from ..helper import (
|
||||||
|
@ -535,7 +533,7 @@ class TVShows(KodiDb):
|
||||||
obj["SeriesId"],
|
obj["SeriesId"],
|
||||||
)
|
)
|
||||||
params = {
|
params = {
|
||||||
"filename": py2_encode(obj["Filename"], "utf-8"),
|
"filename": obj["Filename"],
|
||||||
"id": obj["Id"],
|
"id": obj["Id"],
|
||||||
"dbid": obj["EpisodeId"],
|
"dbid": obj["EpisodeId"],
|
||||||
"mode": "play",
|
"mode": "play",
|
||||||
|
|
Loading…
Reference in a new issue