def iter_subtitles(self, language, pattern): if language not in LANGUAGE_LIST: raise LanguageNotSupported() return self.browser.iter_subtitles(language, pattern)
def iter_subtitles(self, language, pattern): if language not in LANGUAGE_CONV.keys(): raise LanguageNotSupported() return self.browser.iter_subtitles(language, quote_plus(pattern.encode('utf-8')))