small fix in animeout

master
Blatzar 2020-05-30 08:40:40 +00:00 committed by GitHub
parent a25fc26ac4
commit 05ed30c3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -36,6 +36,6 @@ class AnimeOutEpisode(AnimeEpisode, sitename='animeout'):
def _get_sources(self):
soup = helpers.soupify(helpers.get(self.url))
link = soup.select('div.Center > p > h2 > a')[0].get('href')
script = helpers.soupify(helpers.get(link)).select('script')[2].text
url = re.search(r'http[^"]*',script).group()
script = helpers.soupify(helpers.get(link)).select('script')[2]
url = re.search(r'http[^"]*',str(script)).group()
return [('no_extractor', url,)]