import xbmcvfs from common.constants import Constants, Movie from common.imports import * from common.exceptions import AbortException from common.logger import (LazyLogger, Trace) from common.monitor import Monitor from common.playlist import Playlist from common.settings import Settings from frontend.trailer_dialog import TrailerDialog, DialogState from frontend.black_background import BlackBackground from player.player_container import PlayerContainer from frontend.legal_info import LegalInfo module_logger = LazyLogger.get_addon_module_logger(file_path=__file__) ''' Rough outline: Start separate threads to discover basic information about all selected video sources: 1- library 2- trailer folders 3- iTunes 4- TMDB 5- (future) IMDB Each of the above store the discovered info into separate queues. The main function here is to discover the identity of all candidates for playing so that a balanced mix of trailers is available for playing and random selection. It is important to do this quickly. Additional information discovery is performed later, in background threads or just before playing the video.
from common.exceptions import AbortException from common.logger import LazyLogger from common.messages import Messages from common.constants import Constants from common.configuration_utils import ConfigUtils from common.settings import Settings from common.system_queries import SystemQueries from common import utils from tools import enabler # TODO Remove after eliminating util.getCommand from utils import util module_logger = LazyLogger.get_addon_module_logger(file_path=__file__) __version__ = Constants.VERSION module_logger.info(__version__) module_logger.info('Platform: {0}'.format(sys.platform)) REMOTE_DEBUG: bool = False if REMOTE_DEBUG: try: import pydevd # Note pydevd module need to be copied in XBMC\system\python\Lib\pysrc try: xbmc.log('Trying to attach to debugger', xbmc.LOGDEBUG) '''
import xbmc import xbmcgui import xbmcaddon from windowNavigation.action_map import Action from windowNavigation.selection_dialog import SelectionDialog import backends from common.constants import Constants from common.settings import Settings from common.messages import Messages from common.setting_constants import Backends, Players, Genders from common.logger import LazyLogger if Constants.INCLUDE_MODULE_PATH_IN_LOGGER: module_logger = LazyLogger.get_addon_module_logger().getChild( 'lib.windowNavigation') else: module_logger = LazyLogger.get_addon_module_logger() class SettingsDialog(xbmcgui.WindowXMLDialog): HEADER_LABEL = 2 ENGINE_TAB = 100 OPTIONS_TAB = 200 KEYMAP_TAB = 300 ADVANCED_TAB = 400 OK_BUTTON = 28 CANCEL_BUTTON = 29 DEFAULTS_BUTTON = 30 ENGINE_GROUP_LIST = 101
# -*- coding: utf-8 -*- import time import xbmc, xbmcgui from windows.base import WindowReaderBase, WindowHandlerBase from common.constants import Constants from common.logger import LazyLogger from common.messages import Messages from common.settings import Settings from common import utils if Constants.INCLUDE_MODULE_PATH_IN_LOGGER: module_logger = LazyLogger.get_addon_module_logger().getChild( 'lib.windows') else: module_logger = LazyLogger.get_addon_module_logger() class ProgressNotice(xbmcgui.Window): def __init__(self, winID): def __init__(self): super().__init__() self._logger = module_logger.getChild( self.__class__.__name__) # type: LazyLogger self.winID = winID xbmcgui.Window.__init__(self, winID) self.started = False self.finished = False self.seen = False
from typing import Any, List, Union, Type from backends.audio import BasePlayerHandler, WavAudioPlayerHandler from backends.base import SimpleTTSBackendBase, ThreadedTTSBackend from backends import base from backends.audio import BuiltInAudioPlayer, BuiltInAudioPlayerHandler from backends.speechd import Speaker, SSIPCommunicationError from common.constants import Constants from common.setting_constants import Backends, Languages, Players, Genders, Misc from common.logger import LazyLogger from common.messages import Messages from common.settings import Settings from common.system_queries import SystemQueries from common import utils module_logger = LazyLogger.get_addon_module_logger(file_path=__file__) ''' Speech Dispatcher is a Linux TTS abstraction layer. It allows for programs to interact with a speech engine using a consistent interface. It also allows the user to conveniently change which speech engine that they want to use system wide without having to go modify settings everywhere. Speech Dispatcher is long in the tooth, but still useful. ''' if Constants.INCLUDE_MODULE_PATH_IN_LOGGER: module_logger = LazyLogger.get_addon_module_logger().getChild( 'lib.backends') else: module_logger = LazyLogger.get_addon_module_logger()
''' Created on Jul 7, 2020 @author: fbacher ''' from windowNavigation.settings_dialog import SettingsDialog from common.settings import Settings from common.constants import Constants from common.logger import (Logger, LazyLogger) if Constants.INCLUDE_MODULE_PATH_IN_LOGGER: module_logger = LazyLogger.get_addon_module_logger().getChild( 'common.messages') else: module_logger = LazyLogger.get_addon_module_logger() class SettingsGUI(object): ''' classdocs ''' def __init__(self, params): ''' Constructor ''' self._logger = module_logger.getChild(self.__class__.__name__) @staticmethod def launch():
import datetime import hashlib import io import os import time import xbmcvfs from common.configuration_utils import ConfigUtils from common.constants import Constants from common.logger import LazyLogger from common.settings import Settings if Constants.INCLUDE_MODULE_PATH_IN_LOGGER: module_logger = LazyLogger.get_addon_module_logger().getChild( 'lib.cache') else: module_logger = LazyLogger.get_addon_module_logger() class VoiceCache: _logger = None ignore_cache_count = 0 def __init__(self): VoiceCache._logger = module_logger.getChild( self.__class__.__name__) # type: LazyLogger @classmethod def for_debug_setting_changed(cls):