mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Remove kodi_six: import directly
This commit is contained in:
parent
8cabd4e2a3
commit
cd53329fb9
26 changed files with 51 additions and 26 deletions
|
@ -5,7 +5,9 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcaddon, xbmcvfs
|
import xbmc
|
||||||
|
import xbmcaddon
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
from .helper import translate, window, settings, addon_id, dialog, LazyLogger
|
from .helper import translate, window, settings, addon_id, dialog, LazyLogger
|
||||||
from .helper.utils import create_id, translate_path
|
from .helper.utils import create_id, translate_path
|
||||||
|
|
|
@ -3,7 +3,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcaddon
|
import xbmc
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from . import client
|
from . import client
|
||||||
from .database import get_credentials, save_credentials
|
from .database import get_credentials, save_credentials
|
||||||
|
|
|
@ -10,7 +10,8 @@ import sqlite3
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcvfs
|
import xbmc
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
from . import jellyfin_db
|
from . import jellyfin_db
|
||||||
from ..helper import translate, settings, window, dialog
|
from ..helper import translate, settings, window, dialog
|
||||||
|
|
|
@ -5,7 +5,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from kodi_six import xbmcgui, xbmcaddon
|
import xbmcgui
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from ..helper import window, addon_id
|
from ..helper import window, addon_id
|
||||||
from ..helper import LazyLogger
|
from ..helper import LazyLogger
|
||||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
from ..helper import translate, LazyLogger, kodi_version
|
from ..helper import translate, LazyLogger, kodi_version
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcgui
|
import xbmc
|
||||||
|
import xbmcgui
|
||||||
|
|
||||||
from ..helper import LazyLogger
|
from ..helper import LazyLogger
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcgui
|
import xbmc
|
||||||
|
import xbmcgui
|
||||||
|
|
||||||
from ..helper import translate
|
from ..helper import translate
|
||||||
from ..jellyfin.connection_manager import CONNECTION_STATE
|
from ..jellyfin.connection_manager import CONNECTION_STATE
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from kodi_six import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
from ..helper import translate
|
from ..helper import translate
|
||||||
from ..jellyfin.connection_manager import CONNECTION_STATE
|
from ..jellyfin.connection_manager import CONNECTION_STATE
|
||||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
from ..helper import LazyLogger
|
from ..helper import LazyLogger
|
||||||
from ..helper.utils import kodi_version
|
from ..helper.utils import kodi_version
|
||||||
|
|
|
@ -6,7 +6,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcaddon
|
import xbmc
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from .. import database
|
from .. import database
|
||||||
from ..dialogs import context
|
from ..dialogs import context
|
||||||
|
|
|
@ -8,7 +8,11 @@ import sys
|
||||||
import os
|
import os
|
||||||
from urllib.parse import parse_qsl, urlencode
|
from urllib.parse import parse_qsl, urlencode
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcvfs, xbmcgui, xbmcplugin, xbmcaddon
|
import xbmc
|
||||||
|
import xbmcvfs
|
||||||
|
import xbmcgui
|
||||||
|
import xbmcplugin
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from .. import client
|
from .. import client
|
||||||
from ..database import reset, get_sync, Database, jellyfin_db, get_credentials
|
from ..database import reset, get_sync, Database, jellyfin_db, get_credentials
|
||||||
|
|
|
@ -10,7 +10,8 @@ from importlib import reload
|
||||||
|
|
||||||
# Workaround for threads using datetime: _striptime is locked
|
# Workaround for threads using datetime: _striptime is locked
|
||||||
import _strptime # noqa:F401
|
import _strptime # noqa:F401
|
||||||
from kodi_six import xbmc, xbmcgui
|
import xbmc
|
||||||
|
import xbmcgui
|
||||||
|
|
||||||
from .. import objects
|
from .. import objects
|
||||||
from .. import connect
|
from .. import connect
|
||||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from kodi_six import xbmc
|
import xbmc
|
||||||
|
|
||||||
from . import downloader as server
|
from . import downloader as server
|
||||||
from .objects import Movies, TVShows, MusicVideos, Music
|
from .objects import Movies, TVShows, MusicVideos, Music
|
||||||
|
|
|
@ -7,7 +7,8 @@ import os
|
||||||
import logging
|
import logging
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcaddon
|
import xbmc
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from .. import database
|
from .. import database
|
||||||
from . import settings, kodi_version
|
from . import settings, kodi_version
|
||||||
|
|
|
@ -7,7 +7,8 @@ import os
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from kodi_six import xbmc, xbmcvfs
|
import xbmc
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
from .. import client
|
from .. import client
|
||||||
from .utils import translate_path
|
from .utils import translate_path
|
||||||
|
|
|
@ -3,7 +3,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcaddon
|
import xbmc
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from . import LazyLogger
|
from . import LazyLogger
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,10 @@ from urllib.parse import quote_plus
|
||||||
|
|
||||||
from dateutil import tz, parser
|
from dateutil import tz, parser
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcaddon, xbmcgui, xbmcvfs
|
import xbmc
|
||||||
|
import xbmcaddon
|
||||||
|
import xbmcgui
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
from . import LazyLogger
|
from . import LazyLogger
|
||||||
from .translate import translate
|
from .translate import translate
|
||||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
from kodi_six import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
from . import LazyLogger
|
from . import LazyLogger
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
import os
|
import os
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcvfs
|
import xbmc
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
from .utils import translate_path
|
from .utils import translate_path
|
||||||
from . import translate, dialog, settings, LazyLogger
|
from . import translate, dialog, settings, LazyLogger
|
||||||
|
|
|
@ -7,7 +7,7 @@ import json
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from kodi_six import xbmc
|
import xbmc
|
||||||
|
|
||||||
from ..helper import LazyLogger, settings
|
from ..helper import LazyLogger, settings
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,8 @@ from datetime import datetime, timedelta
|
||||||
|
|
||||||
import queue
|
import queue
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcgui
|
import xbmc
|
||||||
|
import xbmcgui
|
||||||
|
|
||||||
from .objects import Movies, TVShows, MusicVideos, Music
|
from .objects import Movies, TVShows, MusicVideos, Music
|
||||||
from .objects.kodi import Movies as KodiDb
|
from .objects.kodi import Movies as KodiDb
|
||||||
|
|
|
@ -7,7 +7,7 @@ import binascii
|
||||||
import json
|
import json
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from kodi_six import xbmc
|
import xbmc
|
||||||
|
|
||||||
from . import connect
|
from . import connect
|
||||||
from . import player
|
from . import player
|
||||||
|
|
|
@ -8,7 +8,10 @@ import sys
|
||||||
import json
|
import json
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcgui, xbmcplugin, xbmcaddon
|
import xbmc
|
||||||
|
import xbmcgui
|
||||||
|
import xbmcplugin
|
||||||
|
import xbmcaddon
|
||||||
|
|
||||||
from ..helper import translate, playutils, api, window, settings, dialog
|
from ..helper import translate, playutils, api, window, settings, dialog
|
||||||
from ..dialogs import resume
|
from ..dialogs import resume
|
||||||
|
|
|
@ -5,7 +5,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from kodi_six import xbmc, xbmcvfs
|
import xbmc
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
from .objects.obj import Objects
|
from .objects.obj import Objects
|
||||||
from .helper import translate, api, window, settings, dialog, event, JSONRPC
|
from .helper import translate, api, window, settings, dialog, event, JSONRPC
|
||||||
|
|
|
@ -7,7 +7,7 @@ import os
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from kodi_six import xbmcvfs
|
import xbmcvfs
|
||||||
|
|
||||||
from .database import Database, jellyfin_db, get_sync, save_sync
|
from .database import Database, jellyfin_db, get_sync, save_sync
|
||||||
from .helper import translate, api, window, event
|
from .helper import translate, api, window, event
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from kodi_six import xbmc
|
import xbmc
|
||||||
|
|
||||||
from jellyfin_kodi.entrypoint.service import Service
|
from jellyfin_kodi.entrypoint.service import Service
|
||||||
from jellyfin_kodi.helper.utils import settings
|
from jellyfin_kodi.helper.utils import settings
|
||||||
|
|
Loading…
Reference in a new issue