# Alternatively, this plugin may be distributed and executed on hardware which # is licensed by Dream Multimedia GmbH. # # This plugin is NOT free software. It is open source, you are allowed to # modify it (if you keep the license), but it may not be commercially # distributed other than under the conditions noted above. # from __init__ import _ from Plugins.Plugin import PluginDescriptor from Screens.InfoBar import InfoBar from Components.config import config from AdvancedMovieSelectionSetup import AdvancedMovieSelectionSetup from TagEditor import TagEditor from Source.Config import initializeConfig initializeConfig() def sessionstart(reason, **kwargs): if reason == 0: session = kwargs["session"] if not config.AdvancedMovieSelection.ml_disable.value: try: from MoviePlayer import showMovies value = config.AdvancedMovieSelection.movie_launch.value if value == "showMovies": InfoBar.showMovies = showMovies elif value == "showTv": InfoBar.showTv = showMovies elif value == "showRadio": InfoBar.showRadio = showMovies elif value == "timeshiftStart": InfoBar.startTimeshift = showMovies from Wastebasket import createWasteTimer createWasteTimer(session) from Source.Remote.MessageServer import serverInstance