Merge pull request #675 from ArjixGamer/patch-30

fix animesimple
master
Red 2021-05-16 16:25:42 +01:00 committed by GitHub
commit 8cf3570149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class AnimeSimple(Anime, sitename='animesimple'):
return [
SearchResult(
title=i.get('title') if i.get('title') else i.select('img')[0].get('alt'),
url=i.get('href'))
url=("https:" if i.get('href')[0] == '/' else "") + i.get('href'))
for i in search_results
]
@ -34,7 +34,7 @@ class AnimeSimple(Anime, sitename='animesimple'):
'top': 10000, # max 10 000 episodes
'bottom': 0,
}))
return [i.get('href') for i in elements]
return [("https:" if i.get('href')[0] == '/' else "") + i.get('href') for i in elements]
def _scrape_metadata(self):
self.title = helpers.soupify(helpers.get(self.url)).select('li.breadcrumb-item.active')[0].text