Skip to content

Commit

Permalink
[toutv] Fix login form regex (closes yt-dlp#11223)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Nov 18, 2016
1 parent 748a462 commit df46b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/toutv.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _real_initialize(self):
'state': state,
})
login_form = self._search_regex(
r'(?s)(<form[^>]+id="Form-login".+?</form>)', login_webpage, 'login form')
r'(?s)(<form[^>]+(?:id|name)="Form-login".+?</form>)', login_webpage, 'login form')
form_data = self._hidden_inputs(login_form)
form_data.update({
'login-email': email,
Expand Down

0 comments on commit df46b19

Please sign in to comment.