fixed small bug in dubbedanime

sometimes the xuath is stored in javascript, using .text does not store the string. This fixes that.
master
Blatzar 2020-04-16 12:26:23 +00:00 committed by GitHub
parent 7f8162ec50
commit 804121bc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ class Dubbedanime(Anime, sitename='dubbedanime'):
class DubbedanimeEpisode(AnimeEpisode, sitename='dubbedanime'):
def _get_sources(self):
soup = helpers.soupify(helpers.get(self.url)).text
soup = str(helpers.soupify(helpers.get(self.url)))
x = re.search(r"xuath = '([^']*)", soup).group(1)
token = re.search(r'"trollvid","id":"([^"]*)', soup).group(1)