Пример #1
0
 def valid_url(self, url, host):
     if common.has_addon('plugin.video.twitch'):
         if re.search(self.pattern, url, re.I):
             return not re.match(self.exclusion_pattern, url, re.I) or any(host in domain.lower() for domain in self.domains)
     return False
Пример #2
0
 def _is_enabled(cls):
     if not common.has_addon('plugin.video.twitch'):
         return False
     return super(cls, cls)._is_enabled()