mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[youtube] update self.ua (fix extraction)
This commit is contained in:
parent
ce1f930c43
commit
51a7eb5efc
@ -206,7 +206,7 @@ class YouTube(VideoExtractor):
|
||||
log.wtf(f'Server refused to provide video details. Returned status: {playerResponseStatus}.')
|
||||
|
||||
def prepare(self, **kwargs):
|
||||
self.ua = 'Mozilla/5.0 (Linux; Android 15) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.73 Mobile Safari/537.36'
|
||||
self.ua = 'Mozilla/5.0 (iPad; CPU OS 16_7_10 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1,gzip(gfe)'
|
||||
|
||||
assert self.url or self.vid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user