Skip to content

Commit

Permalink
[youtube] update self.ua (fix extraction)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Dec 29, 2024
1 parent ce1f930 commit 51a7eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def check_playability_response(self, ytInitialPlayerResponse):
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

Expand Down

0 comments on commit 51a7eb5

Please sign in to comment.