diff options
author | knapior <knapior93@gmail.com> | 2021-01-27 20:43:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 02:43:20 +0700 |
commit | 7b8fa658f88d53066f7a2ad00df19697552cf286 (patch) | |
tree | cab66a842efacb29d1b203b74f41bc3611beec0b /youtube_dl | |
parent | fd95fc33b13d732002d53c35521f17184d14cc21 (diff) |
[cda] Improve birth validation detection (closes #14022) (#27929)
Co-authored-by: Sergey M <dstftw@gmail.com>
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/cda.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cda.py b/youtube_dl/extractor/cda.py index d67900e62..6429454fb 100644 --- a/youtube_dl/extractor/cda.py +++ b/youtube_dl/extractor/cda.py @@ -96,7 +96,7 @@ class CDAIE(InfoExtractor): raise ExtractorError('This video is only available for premium users.', expected=True) need_confirm_age = False - if self._html_search_regex(r'(<form[^>]+action="/a/validatebirth")', + if self._html_search_regex(r'(<form[^>]+action="[^"]*/a/validatebirth[^"]*")', webpage, 'birthday validate form', default=None): webpage = self._download_age_confirm_page( url, video_id, note='Confirming age') |