1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-11 23:59:37 +00:00

[cda] Improve birth validation detection (closes #14022) (#27929)

Co-authored-by: Sergey M <dstftw@gmail.com>
This commit is contained in:
knapior 2021-01-27 20:43:20 +01:00 committed by GitHub
parent fd95fc33b1
commit 7b8fa658f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')