コード例 #1
0
ファイル: opensubtitles.py プロジェクト: adozenlines/freevo1
    def __init__(self):
        if not config.SYS_USE_NETWORK:
            self.reason = 'SYS_USE_NETWORK not enabled'
            return
        
        if not plugin.is_active('video.subtitles'):
            self.reason = 'Plugin \'video.subtitles\' not active, activate it first in your local_config.py!'
            return

        # opensubtitles XMLRPC server and token
        self.server = None
        self.token  = None
        
        SubtitlesPlugin.__init__(self, 'os', 'opensubtitles.org', [])
        plugin.register(self, 'video.subtitles.opensubtitles')
コード例 #2
0
ファイル: opensubtitles.py プロジェクト: spartrekus/freevo1
    def __init__(self):
        if not config.SYS_USE_NETWORK:
            self.reason = 'SYS_USE_NETWORK not enabled'
            return

        if not plugin.is_active('video.subtitles'):
            self.reason = 'Plugin \'video.subtitles\' not active, activate it first in your local_config.py!'
            return

        # opensubtitles XMLRPC server and token
        self.server = None
        self.token = None

        SubtitlesPlugin.__init__(self, 'os', 'opensubtitles.org', [])
        plugin.register(self, 'video.subtitles.opensubtitles')
コード例 #3
0
    def __init__(self):
        """
        Constructor
        """
        if not config.SYS_USE_NETWORK:
            self.reason = 'SYS_USE_NETWORK not enabled'
            return

        if not plugin.is_active('video.subtitles'):
            self.reason = 'Plugin \'video.subtitles\' not active, activate it first in your local_config.py!'
            return

        langs = []

        try:
            langs = config.NAPI_LANGS
        except:
            langs = NAPI_LANGS

        SubtitlesPlugin.__init__(self, 'np', 'napiprojekt.pl', langs)
        plugin.register(self, 'video.subtitles.napiprojekt')
コード例 #4
0
ファイル: napiprojekt.py プロジェクト: golaizola/freevo1
    def __init__(self):
        """
        Constructor
        """
        if not config.SYS_USE_NETWORK:
            self.reason = 'SYS_USE_NETWORK not enabled'
            return
        
        if not plugin.is_active('video.subtitles'):
            self.reason = 'Plugin \'video.subtitles\' not active, activate it first in your local_config.py!'
            return

        langs = []

        try:
            langs = config.NAPI_LANGS
        except:
            langs = NAPI_LANGS

        SubtitlesPlugin.__init__(self, 'np', 'napiprojekt.pl', langs)
        plugin.register(self, 'video.subtitles.napiprojekt')