Skip to content

Commit

Permalink
[animeondemand] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey M․ committed Dec 20, 2017
1 parent 17c3ace commit d2d766b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/animeondemand.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _login(self):

if all(p not in response for p in ('>Logout<', 'href="/users/sign_out"')):
error = self._search_regex(
r'<p[^>]+\bclass=(["\'])(?:(?!\1).)*\balert\s(?:(?!\1).)*\1[^>]*>(?P<error>.+?)</p>',
r'<p[^>]+\bclass=(["\'])(?:(?!\1).)*\balert\b(?:(?!\1).)*\1[^>]*>(?P<error>.+?)</p>',
response, 'error', default=None, group='error')
if error:
raise ExtractorError('Unable to login: %s' % error, expected=True)
Expand Down

0 comments on commit d2d766b

Please sign in to comment.