From 51a7eb5efccb226576cd0d3a018bc3c1f19a1081 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Sun, 29 Dec 2024 12:36:44 +0100 Subject: [PATCH] [youtube] update self.ua (fix extraction) --- src/you_get/extractors/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py index ffbc9ada..59f22c3c 100644 --- a/src/you_get/extractors/youtube.py +++ b/src/you_get/extractors/youtube.py @@ -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