Exemplo n.º 1
0
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
                if config.AdvancedMovieSelection.server_enabled.value:
                    serverInstance.setPort(config.AdvancedMovieSelection.server_port.value)
                    serverInstance.start()
                    serverInstance.setSearchRange(config.AdvancedMovieSelection.start_search_ip.value, config.AdvancedMovieSelection.stop_search_ip.value)
                    serverInstance.startScanForClients()
                
                from Source.EpgListExtension import epgListExtension
                epgListExtension.setEnabled(config.AdvancedMovieSelection.epg_extension.value)
                
                from Source.MovieScanner import movieScanner
                movieScanner.setEnabled(True)
            except:
                print '-' * 50
                import traceback, sys
                traceback.print_exc(file=sys.stdout)
                print '-' * 50
Exemplo n.º 2
0
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
                if config.AdvancedMovieSelection.server_enabled.value:
                    serverInstance.setPort(config.AdvancedMovieSelection.server_port.value)
                    serverInstance.start()
                    serverInstance.setSearchRange(config.AdvancedMovieSelection.start_search_ip.value, config.AdvancedMovieSelection.stop_search_ip.value)
                    serverInstance.startScanForClients()
                
                from Source.EpgListExtension import epgListExtension
                epgListExtension.setEnabled(config.AdvancedMovieSelection.epg_extension.value)
                
                from Source.MovieScanner import movieScanner
                movieScanner.setEnabled(True)
            except:
                print('-' * 50)
                import traceback, sys
                traceback.print_exc(file=sys.stdout)
                print('-' * 50)
Exemplo n.º 3
0
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.EpgListExtension import epgListExtension
                epgListExtension.setEnabled(
                    config.AdvancedMovieSelection.epg_extension.value)

                from Source.MovieScanner import movieScanner
                movieScanner.setEnabled(True)
                session.screen[
                    "AdvancedMovieSelection"] = AdvancedMovieSelectionServiceEvent(
                    )
            except:
                print '-' * 50
                import traceback, sys
                traceback.print_exc(file=sys.stdout)
                print '-' * 50