1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 05:57:16 +08:00

[xtube] Add age verification cookie to user video list request

This commit is contained in:
Mohamed El Morabity 2020-07-27 12:28:45 +02:00
parent c3e1951f0a
commit f712dbafa7

View File

@ -175,7 +175,7 @@ class XTubeUserIE(InfoExtractor):
request = sanitized_Request(
'http://www.xtube.com/profile/%s/videos/%d' % (user_id, pagenum),
headers={
'Cookie': 'popunder=4',
'Cookie': 'AGEGATEPASSED=1; popunder=4',
'X-Requested-With': 'XMLHttpRequest',
'Referer': url,
})