[ie/afreecatv] Support browser impersonation (#10174)

Closes #8187
Authored by: hui1601
pull/10321/head
Dong Heon Hee 4 months ago committed by GitHub
parent 2a4f2e82db
commit e8352ad659
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -189,7 +189,7 @@ class AfreecaTVIE(AfreecaTVBaseIE):
headers={'Referer': url}, data=urlencode_postdata({ headers={'Referer': url}, data=urlencode_postdata({
'nTitleNo': video_id, 'nTitleNo': video_id,
'nApiLevel': 10, 'nApiLevel': 10,
}))['data'] }), impersonate=True)['data']
error_code = traverse_obj(data, ('code', {int})) error_code = traverse_obj(data, ('code', {int}))
if error_code == -6221: if error_code == -6221:

Loading…
Cancel
Save