Skip to content

Commit

Permalink
Merge pull request #678 from ArjixGamer/patch-32
Browse files Browse the repository at this point in the history
fixed genoanime
  • Loading branch information
AbdullahM0hamed committed May 19, 2021
2 parents 8cf3570 + 03c0329 commit 5d63f2b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions anime_downloader/sites/genoanime.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult
from anime_downloader.sites import helpers

import re

class GenoAnime(Anime, sitename="genoanime"):
sitename = "genoanime"
Expand Down Expand Up @@ -38,4 +38,11 @@ class GenoAnimeEpisode(AnimeEpisode, sitename='genoanime'):
def _get_sources(self):
soup = helpers.soupify(helpers.get(self.url))
soup = helpers.soupify(helpers.get(soup.iframe.get("src")))
return [("no_extractor", soup.source.get("src"))]
id_ = re.findall(r"data: {id: [\"'](.*?)[\"']}", str(soup))[0]

response = helpers.post('https://genoanime.com/player/genovids.php', data={"id": id_}).json() # noqa

return [
("no_extractor", x['src'])
for x in response['url']
]

0 comments on commit 5d63f2b

Please sign in to comment.