'kastatic.com' no longer present in HTML, so search for 'kastatus.com' instead

This commit is contained in:
Sebastiaan Dammann 2016-06-20 20:47:48 +02:00 committed by GitHub
parent da6b6ecc6d
commit 1f4fde3f73

View file

@ -155,8 +155,8 @@ class KATProvider(generic.TorrentProvider):
cnt = len(items[mode]) cnt = len(items[mode])
try: try:
if not html or 'kastatic' not in html or self._has_no_results(html) or re.search(r'(?is)<(?:h\d)[^>]*>.*?(?:did\snot\smatch)', html): if not html or 'kastatus.com' not in html or self._has_no_results(html) or re.search(r'(?is)<(?:h\d)[^>]*>.*?(?:did\snot\smatch)', html):
if html and 'kastatic' not in html: if html and 'kastatus.com' not in html:
url += (1, 0)[url == len(self.urls['base'])] url += (1, 0)[url == len(self.urls['base'])]
raise generic.HaltParseException raise generic.HaltParseException