Skip to content

Commit

Permalink
Fixed Issue Xonshiz#109
Browse files Browse the repository at this point in the history
- Removed ".decode" on line 209 in file crunchyroll.py
- Added " b' " on line 98 in file browser_instance.py
  • Loading branch information
iiEpic committed Jan 2, 2020
1 parent ff28568 commit 7be1991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anime_dl/common/browser_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def login_check(html_source, cookies=None):
print("Let me check again...")
second_try_response, html_source, cookies = page_downloader(url="https://www.crunchyroll.com/", cookies=cookies)
if second_try_response:
if "href=\"/logout\"" in html_source:
if b'href=\"/logout\"' in html_source:
return True, cookies
else:
return False, cookies
2 changes: 1 addition & 1 deletion anime_dl/sites/crunchyroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def sub_list_editor(self, episode_range, ep_sub_list):

def episode_information_extractor(self, page_source, resolution_to_find):
anime_name = re.sub(r'[^A-Za-z0-9\ \-\' \\]+', '', str(re.search(r'<series_title>(.*?)</series_title>', page_source).group(1))).title().strip()
episode_number = re.search(r'<episode_number>(.*?)</episode_number>', page_source.decode("utf-8")).group(1)
episode_number = re.search(r'<episode_number>(.*?)</episode_number>', page_source).group(1)
video_width, video_height = resolution_to_find.split("x")
video_resolution = str(video_width) + "x" + str(video_height)

Expand Down

0 comments on commit 7be1991

Please sign in to comment.