animeuniverse è ora AnimeHDitalia, nascosti gli episodi non ancora caricati

This commit is contained in:
marco
2022-11-05 14:22:00 +01:00
parent c94b32da26
commit e2f195ebd3
4 changed files with 7 additions and 6 deletions

View File

@@ -378,10 +378,10 @@ class GenericServerTest(unittest.TestCase):
self.assertTrue(page.success, self.name + ' scraper returned an invalid link')
self.assertLess(page.code, 400, self.name + ' scraper returned a ' + str(page.code) + ' link')
contentType = page.headers['Content-Type']
contentType = page.headers['Content-Type'].lower()
self.assert_(contentType.startswith(
'video') or 'mpegurl' in contentType or 'octet-stream' in contentType or 'dash+xml' in contentType,
self.name + ' scraper did not return valid url for link ' + page_url + '<br>Direct url: ' + directUrl + '<br>Content-Type: ' + contentType)
self.name + ' scraper did not return valid url for link ' + page_url + '<br>Direct url: ' + directUrl + '<br>Content-Type: ' + page.headers['Content-Type'])
print('test passed')