Remove kodi_six: import directly

This commit is contained in:
Odd Stråbø 2024-06-11 05:10:57 +00:00
parent 8cabd4e2a3
commit cd53329fb9
26 changed files with 51 additions and 26 deletions

View File

@ -5,7 +5,9 @@ from __future__ import division, absolute_import, print_function, unicode_litera
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.utils import create_id, translate_path

View File

@ -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 .database import get_credentials, save_credentials

View File

@ -10,7 +10,8 @@ import sqlite3
import sys
import re
from kodi_six import xbmc, xbmcvfs
import xbmc
import xbmcvfs
from . import jellyfin_db
from ..helper import translate, settings, window, dialog

View File

@ -5,7 +5,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
import os
from kodi_six import xbmcgui, xbmcaddon
import xbmcgui
import xbmcaddon
from ..helper import window, addon_id
from ..helper import LazyLogger

View File

@ -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

View File

@ -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

View File

@ -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 ..jellyfin.connection_manager import CONNECTION_STATE

View File

@ -5,7 +5,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
import re
from kodi_six import xbmcgui
import xbmcgui
from ..helper import translate
from ..jellyfin.connection_manager import CONNECTION_STATE

View File

@ -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.utils import kodi_version

View File

@ -6,7 +6,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
import json
import sys
from kodi_six import xbmc, xbmcaddon
import xbmc
import xbmcaddon
from .. import database
from ..dialogs import context

View File

@ -8,7 +8,11 @@ import sys
import os
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 ..database import reset, get_sync, Database, jellyfin_db, get_credentials

View File

@ -10,7 +10,8 @@ from importlib import reload
# Workaround for threads using datetime: _striptime is locked
import _strptime # noqa:F401
from kodi_six import xbmc, xbmcgui
import xbmc
import xbmcgui
from .. import objects
from .. import connect

View File

@ -6,7 +6,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
from contextlib import contextmanager
import datetime
from kodi_six import xbmc
import xbmc
from . import downloader as server
from .objects import Movies, TVShows, MusicVideos, Music

View File

@ -7,7 +7,8 @@ import os
import logging
import traceback
from kodi_six import xbmc, xbmcaddon
import xbmc
import xbmcaddon
from .. import database
from . import settings, kodi_version

View File

@ -7,7 +7,8 @@ import os
from uuid import uuid4
import requests
from kodi_six import xbmc, xbmcvfs
import xbmc
import xbmcvfs
from .. import client
from .utils import translate_path

View File

@ -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

View File

@ -14,7 +14,10 @@ from urllib.parse import quote_plus
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 .translate import translate

View File

@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
#################################################################################################
from kodi_six import xbmcgui
import xbmcgui
from . import LazyLogger

View File

@ -6,7 +6,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
import os
import xml.etree.ElementTree as etree
from kodi_six import xbmc, xbmcvfs
import xbmc
import xbmcvfs
from .utils import translate_path
from . import translate, dialog, settings, LazyLogger

View File

@ -7,7 +7,7 @@ import json
import threading
import time
from kodi_six import xbmc
import xbmc
from ..helper import LazyLogger, settings

View File

@ -8,7 +8,8 @@ from datetime import datetime, timedelta
import queue
from kodi_six import xbmc, xbmcgui
import xbmc
import xbmcgui
from .objects import Movies, TVShows, MusicVideos, Music
from .objects.kodi import Movies as KodiDb

View File

@ -7,7 +7,7 @@ import binascii
import json
import threading
from kodi_six import xbmc
import xbmc
from . import connect
from . import player

View File

@ -8,7 +8,10 @@ import sys
import json
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 ..dialogs import resume

View File

@ -5,7 +5,8 @@ from __future__ import division, absolute_import, print_function, unicode_litera
import os
from kodi_six import xbmc, xbmcvfs
import xbmc
import xbmcvfs
from .objects.obj import Objects
from .helper import translate, api, window, settings, dialog, event, JSONRPC

View File

@ -7,7 +7,7 @@ import os
import xml.etree.ElementTree as etree
from urllib.parse import urlencode
from kodi_six import xbmcvfs
import xbmcvfs
from .database import Database, jellyfin_db, get_sync, save_sync
from .helper import translate, api, window, event

View File

@ -5,7 +5,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
import threading
from kodi_six import xbmc
import xbmc
from jellyfin_kodi.entrypoint.service import Service
from jellyfin_kodi.helper.utils import settings