def load_trailers() -> None: """ Start up the configured trailer discovery threads. Called whenever settings have changed to start any threads that have just ben enabled. :return: """ module_logger.enter() if Settings.get_include_library_trailers(): lib_instance = DiscoverLibraryMovies() lib_instance.discover_basic_information() # Manufacture trailer entries for folders which contain trailer # files. Note that files are assumed to be videos. if Settings.get_include_trailer_folders(): DiscoverFolderTrailers().discover_basic_information() if Settings.get_include_itunes_trailers(): DiscoverItunesMovies().discover_basic_information() if Settings.get_include_tmdb_trailers(): DiscoverTmdbMovies().discover_basic_information() if Settings.is_include_tfh_trailers(): DiscoverTFHMovies().discover_basic_information() Monitor.throw_exception_if_abort_requested(timeout=1.0) Monitor.set_startup_complete()
def startup(cls) -> None: """ :return: """ FrontendBridge() # Initialize if not cls._is_screensaver and Settings.prompt_for_settings(): cls.configure_settings() try: thread = threading.Thread(target=cls.ui_thread_runner, name='ui_thread') thread.start() except AbortException: reraise(*sys.exc_info()) except Exception: module_logger.exception('') Monitor.set_startup_complete() cls.event_processing_loop()