Clean up imports

This commit is contained in:
croneter 2020-12-18 17:43:24 +01:00
parent 8545f939fe
commit 58eaa14043
94 changed files with 0 additions and 217 deletions

View file

@ -1,8 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from sys import listitem from sys import listitem
from urllib.parse import urlencode from urllib.parse import urlencode

View file

@ -1,9 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import object from builtins import object
import logging import logging
from sys import argv from sys import argv

View file

@ -4,7 +4,6 @@
Used to save PKC's application state and share between modules. Be careful Used to save PKC's application state and share between modules. Be careful
if you invoke another PKC Python instance (!!) when e.g. PKC.movies is called if you invoke another PKC Python instance (!!) when e.g. PKC.movies is called
""" """
from __future__ import absolute_import, division, unicode_literals
from .account import Account from .account import Account
from .application import App from .application import App
from .connection import Connection from .connection import Connection

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from .. import utils from .. import utils

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import object
from logging import getLogger from logging import getLogger
import queue import queue
from threading import Lock, RLock from threading import Lock, RLock

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from .. import utils, json_rpc as js, variables as v from .. import utils, json_rpc as js, variables as v

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from .. import utils from .. import utils

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
class PlayState(object): class PlayState(object):
# "empty" dict for the PLAYER_STATES above. Use copy.deepcopy to duplicate! # "empty" dict for the PLAYER_STATES above. Use copy.deepcopy to duplicate!
template = { template = {

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
import requests import requests

View file

@ -1,11 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import range
from builtins import object
from logging import getLogger from logging import getLogger
from time import time as _time from time import time as _time
import threading import threading

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from logging import getLogger from logging import getLogger
import xbmc import xbmc

View file

@ -3,7 +3,6 @@
""" """
Processes Plex companion inputs from the plexbmchelper to Kodi commands Processes Plex companion inputs from the plexbmchelper to Kodi commands
""" """
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from xbmc import Player from xbmc import Player

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
import xbmcgui import xbmcgui

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
import xbmc import xbmc
import xbmcgui import xbmcgui

View file

@ -4,7 +4,6 @@
xml.etree.ElementTree tries to encode with text.encode('ascii') - which is xml.etree.ElementTree tries to encode with text.encode('ascii') - which is
just plain BS. This etree will always return unicode, not string just plain BS. This etree will always return unicode, not string
""" """
from __future__ import absolute_import, division, unicode_literals
# Originally tried faster cElementTree, but does NOT work reliably with Kodi # Originally tried faster cElementTree, but does NOT work reliably with Kodi
from defusedxml.ElementTree import DefusedXMLParser, _generate_etree_functions from defusedxml.ElementTree import DefusedXMLParser, _generate_etree_functions

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
import requests import requests
import requests.exceptions as exceptions import requests.exceptions as exceptions

View file

@ -4,8 +4,6 @@
Loads of different functions called in SEPARATE Python instances through Loads of different functions called in SEPARATE Python instances through
e.g. plugin://... calls. Hence be careful to only rely on window variables. e.g. plugin://... calls. Hence be careful to only rely on window variables.
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import range
from logging import getLogger from logging import getLogger
import sys import sys

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from builtins import range
from builtins import object
from logging import getLogger from logging import getLogger
from xbmc import executebuiltin from xbmc import executebuiltin

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from .movies import Movie from .movies import Movie
from .tvshows import Show, Season, Episode from .tvshows import Show, Season, Episode
from .music import Artist, Album, Song from .music import Artist, Album, Song

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from ntpath import dirname from ntpath import dirname

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from .common import ItemBase from .common import ItemBase

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from .common import ItemBase from .common import ItemBase

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from .common import ItemBase, process_path from .common import ItemBase, process_path

View file

@ -4,8 +4,6 @@
Collection of functions using the Kodi JSON RPC interface. Collection of functions using the Kodi JSON RPC interface.
See http://kodi.wiki/view/JSON-RPC_API See http://kodi.wiki/view/JSON-RPC_API
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from json import loads, dumps from json import loads, dumps
from xbmc import executeJSONRPC from xbmc import executeJSONRPC

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from .common import KODIDB_LOCK from .common import KODIDB_LOCK

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from threading import Lock from threading import Lock
from .. import db, path_ops from .. import db, path_ops

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from . import common from . import common

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from . import common from . import common

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from sqlite3 import IntegrityError from sqlite3 import IntegrityError

View file

@ -3,7 +3,6 @@
""" """
PKC Kodi Monitoring implementation PKC Kodi Monitoring implementation
""" """
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from json import loads from json import loads
import copy import copy

View file

@ -1,6 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from .full_sync import start from .full_sync import start
from .websocket import store_websocket_message, process_websocket_messages, \ from .websocket import store_websocket_message, process_websocket_messages, \
WEBSOCKET_MESSAGES, PLAYSTATE_SESSIONS WEBSOCKET_MESSAGES, PLAYSTATE_SESSIONS

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import next
from builtins import object
from logging import getLogger from logging import getLogger
import xbmc import xbmc

View file

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from ..plex_api import API from ..plex_api import API

View file

@ -1,7 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from logging import getLogger from logging import getLogger
from queue import Full from queue import Full

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import range
from logging import getLogger from logging import getLogger
import queue import queue

View file

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from . import common from . import common

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.parse, urllib.error
import copy import copy

View file

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from . import common, sections from . import common, sections

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from builtins import range
from builtins import object
from logging import getLogger from logging import getLogger
import copy import copy

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from logging import getLogger from logging import getLogger
from .common import update_kodi_library, PLAYLIST_SYNC_ENABLED from .common import update_kodi_library, PLAYLIST_SYNC_ENABLED

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
import logging import logging
import xbmc import xbmc
############################################################################### ###############################################################################

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from logging import getLogger from logging import getLogger
from . import variables as v from . import variables as v

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
import re import re

View file

@ -14,7 +14,6 @@ WARNING: os.path won't really work with smb paths (possibly others). For
xbmcvfs functions to work with smb paths, they need to be both in passwords.xml xbmcvfs functions to work with smb paths, they need to be both in passwords.xml
as well as sources.xml as well as sources.xml
""" """
from __future__ import absolute_import, division, unicode_literals
import shutil import shutil
import os import os
from os import path # allows to use path_ops.path.join, for example from os import path # allows to use path_ops.path.join, for example

View file

@ -38,8 +38,6 @@ Functions
.. autofunction:: real_absolute_path .. autofunction:: real_absolute_path
.. autofunction:: parent_dir_path .. autofunction:: parent_dir_path
""" """
from builtins import next
import os.path import os.path
from functools import partial from functools import partial

View file

@ -33,8 +33,6 @@ Functions
.. autofunction:: match_path_against .. autofunction:: match_path_against
.. autofunction:: filter_paths .. autofunction:: filter_paths
""" """
from builtins import map
from fnmatch import fnmatch, fnmatchcase from fnmatch import fnmatch, fnmatchcase
__all__ = ['match_path', __all__ = ['match_path',

View file

@ -3,10 +3,6 @@
""" """
Used to kick off Kodi playback Used to kick off Kodi playback
""" """
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from logging import getLogger from logging import getLogger
from threading import Thread from threading import Thread
import datetime import datetime

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from requests import exceptions from requests import exceptions

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from . import utils, playback, context_entry, transfer, backgroundthread from . import utils, playback, context_entry, transfer, backgroundthread

View file

@ -3,8 +3,6 @@
""" """
Collection of functions associated with Kodi and Plex playlists and playqueues Collection of functions associated with Kodi and Plex playlists and playqueues
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from .plex_api import API from .plex_api import API

View file

@ -11,7 +11,6 @@
.. autoclass:: websocket .. autoclass:: websocket
""" """
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from sqlite3 import OperationalError from sqlite3 import OperationalError

View file

@ -1,9 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import object
from logging import getLogger from logging import getLogger
import queue import queue
import time import time

View file

@ -4,8 +4,6 @@
Synced playlists are stored in our plex.db. Interact with it through this Synced playlists are stored in our plex.db. Interact with it through this
module module
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import next
from logging import getLogger from logging import getLogger
from .common import Playlist, PlaylistError from .common import Playlist, PlaylistError

View file

@ -3,7 +3,6 @@
""" """
Create and delete playlists on the Kodi side of things Create and delete playlists on the Kodi side of things
""" """
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
import re import re

View file

@ -3,7 +3,6 @@
""" """
Create and delete playlists on the Plex side of things Create and delete playlists on the Plex side of things
""" """
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from .common import PlaylistError from .common import PlaylistError

View file

@ -4,8 +4,6 @@
Functions to communicate with the currently connected PMS in order to Functions to communicate with the currently connected PMS in order to
manipulate playlists manipulate playlists
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from logging import getLogger from logging import getLogger
from .common import PlaylistError from .common import PlaylistError

View file

@ -3,8 +3,6 @@
""" """
Monitors the Kodi playqueue and adjusts the Plex playqueue accordingly Monitors the Kodi playqueue and adjusts the Plex playqueue accordingly
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import range
from logging import getLogger from logging import getLogger
import copy import copy

View file

@ -3,8 +3,6 @@
""" """
plex_api interfaces with all Plex Media Server (and plex.tv) xml responses plex_api interfaces with all Plex Media Server (and plex.tv) xml responses
""" """
from __future__ import absolute_import, division, unicode_literals
from .base import Base from .base import Base
from .artwork import Artwork from .artwork import Artwork
from .file import File from .file import File

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from ..kodi_db import KodiVideoDB, KodiMusicDB from ..kodi_db import KodiVideoDB, KodiMusicDB

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from builtins import object
from logging import getLogger from logging import getLogger
from re import sub from re import sub

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from builtins import range
from logging import getLogger from logging import getLogger
from re import sub from re import sub
from string import punctuation from string import punctuation

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from .. import utils, variables as v, app from .. import utils, variables as v, app

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
from ..utils import cast from ..utils import cast

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from ..utils import cast from ..utils import cast

View file

@ -1,8 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from ..utils import cast from ..utils import cast
from .. import timing, variables as v, app from .. import timing, variables as v, app

View file

@ -3,9 +3,6 @@
""" """
The Plex Companion master python file The Plex Companion master python file
""" """
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from logging import getLogger from logging import getLogger
from threading import Thread from threading import Thread
from queue import Empty from queue import Empty

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from .common import PlexDBBase, initialize, wipe, PLEXDB_LOCK from .common import PlexDBBase, initialize, wipe, PLEXDB_LOCK
from .tvshows import TVShows from .tvshows import TVShows
from .movies import Movies from .movies import Movies

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from threading import Lock from threading import Lock
from .. import db, variables as v from .. import db, variables as v

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from .. import variables as v from .. import variables as v

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from .. import variables as v from .. import variables as v

View file

@ -1,9 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
class Playlists(object): class Playlists(object):
def playlist_ids(self): def playlist_ids(self):
""" """

View file

@ -1,9 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
class Sections(object): class Sections(object):
def all_sections(self): def all_sections(self):
""" """

View file

@ -1,10 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from .. import variables as v from .. import variables as v
class TVShows(object): class TVShows(object):
def add_show(self, plex_id, checksum, section_id, kodi_id, kodi_pathid, def add_show(self, plex_id, checksum, section_id, kodi_id, kodi_pathid,
last_sync): last_sync):

View file

@ -1,11 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import range
from builtins import object
from logging import getLogger from logging import getLogger
from ast import literal_eval from ast import literal_eval
from copy import deepcopy from copy import deepcopy

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from logging import getLogger from logging import getLogger
import time import time
import threading import threading

View file

@ -1,10 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import object
from logging import getLogger from logging import getLogger
import http.client import http.client
import traceback import traceback

View file

@ -3,9 +3,6 @@
""" """
Plex Companion listener Plex Companion listener
""" """
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from logging import getLogger from logging import getLogger
from re import sub from re import sub
from socketserver import ThreadingMixIn from socketserver import ThreadingMixIn

View file

@ -23,9 +23,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. MA 02110-1301, USA.
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from builtins import object
import logging import logging
import socket import socket
import threading import threading

View file

@ -4,11 +4,6 @@
Manages getting playstate from Kodi and sending it to the PMS as well as Manages getting playstate from Kodi and sending it to the PMS as well as
subscribed Plex Companion clients. subscribed Plex Companion clients.
""" """
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import object
from logging import getLogger from logging import getLogger
from threading import Thread from threading import Thread

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import object
import logging import logging
import sys import sys
import xbmc import xbmc

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
import xbmc import xbmc

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from datetime import datetime, timedelta from datetime import datetime, timedelta
from time import localtime, strftime from time import localtime, strftime

View file

@ -4,9 +4,6 @@
Used to shovel data from separate Kodi Python instances to the main thread Used to shovel data from separate Kodi Python instances to the main thread
and vice versa. and vice versa.
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from builtins import object
from logging import getLogger from logging import getLogger
import json import json

View file

@ -3,11 +3,6 @@
""" """
Various functions and decorators for PKC Various functions and decorators for PKC
""" """
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import object
from logging import getLogger from logging import getLogger
from sqlite3 import OperationalError from sqlite3 import OperationalError
from datetime import datetime from datetime import datetime

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
import os import os
import sys import sys
import platform import platform

View file

@ -20,12 +20,6 @@ Copyright (C) 2010 Hiroki Ohtani(liris)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
""" """
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import chr
from builtins import range
from builtins import object
import socket import socket
try: try:

View file

@ -6,8 +6,6 @@ Code from script.module.metadatautils, kodidb.py
Loads of different functions called in SEPARATE Python instances through Loads of different functions called in SEPARATE Python instances through
e.g. plugin://... calls. Hence be careful to only rely on window variables. e.g. plugin://... calls. Hence be careful to only rely on window variables.
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from logging import getLogger from logging import getLogger
import xbmc import xbmc

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from . import kodigui from . import kodigui
from .. import utils, variables as v from .. import utils, variables as v

View file

@ -5,9 +5,6 @@
:synopsis: Prompts the user to add network paths and username passwords for :synopsis: Prompts the user to add network paths and username passwords for
e.g. smb paths e.g. smb paths
""" """
from __future__ import absolute_import, division, unicode_literals
from future import standard_library
standard_library.install_aliases()
from logging import getLogger from logging import getLogger
import re import re
import socket import socket

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from . import kodigui from . import kodigui
from .. import utils, variables as v from .. import utils, variables as v

View file

@ -1,10 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from builtins import zip
from builtins import str
from builtins import range
from builtins import object
import xbmc import xbmc
import xbmcgui import xbmcgui
import time import time

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
import xbmc import xbmc
from . import kodigui from . import kodigui

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
import xbmcgui import xbmcgui
from . import kodigui from . import kodigui

View file

@ -5,8 +5,6 @@
:synopsis: This module shows a dialog to let one choose between different Plex :synopsis: This module shows a dialog to let one choose between different Plex
(home) users (home) users
""" """
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from logging import getLogger from logging import getLogger
import xbmc import xbmc
import xbmcgui import xbmcgui