示例#1
0
    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
    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')