diff options
author | Astound <kirito@disroot.org> | 2024-04-27 09:54:42 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-04-27 09:54:42 +0800 |
commit | efd89b2e644e20838645f91e2bc77fbc7ddc5ee1 (patch) | |
tree | c57d1d1b1c288ff40ecb9af25ca1161a016a4cee /youtube | |
parent | 0dc1747178b06e09906b61a8a876ecb9b6db9c1a (diff) | |
download | yt-local-efd89b2e644e20838645f91e2bc77fbc7ddc5ee1.tar.lz yt-local-efd89b2e644e20838645f91e2bc77fbc7ddc5ee1.tar.xz yt-local-efd89b2e644e20838645f91e2bc77fbc7ddc5ee1.zip |
set ios client
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/util.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/youtube/util.py b/youtube/util.py index 30fed26..24824ac 100644 --- a/youtube/util.py +++ b/youtube/util.py @@ -662,6 +662,22 @@ def to_valid_filename(name): # https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/youtube.py#L72 INNERTUBE_CLIENTS = { + 'ios': { + 'INNERTUBE_API_KEY': 'AIzaSyB-63vPrdThhKuerbB2N_l7Kwwcxj6yUAc', + 'INNERTUBE_CONTEXT': { + 'client': { + 'hl': 'en', + 'gl': 'US', + 'clientName': 'IOS', + 'clientVersion': '19.12.3', + 'deviceModel': 'iPhone14,3', + 'userAgent': 'com.google.ios.youtube/19.12.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)' + } + }, + 'INNERTUBE_CONTEXT_CLIENT_NAME': 5, + 'REQUIRE_JS_PLAYER': False + }, + 'android': { 'INNERTUBE_API_KEY': 'AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w', 'INNERTUBE_CONTEXT': { @@ -681,22 +697,6 @@ INNERTUBE_CLIENTS = { 'REQUIRE_JS_PLAYER': False, }, - 'ios': { - 'INNERTUBE_API_KEY': 'AIzaSyB-63vPrdThhKuerbB2N_l7Kwwcxj6yUAc', - 'INNERTUBE_CONTEXT': { - 'client': { - 'hl': 'en', - 'gl': 'US', - 'clientName': 'IOS', - 'clientVersion': '19.12.3', - 'deviceModel': 'iPhone14,3', - 'userAgent': 'com.google.ios.youtube/19.12.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)' - } - }, - 'INNERTUBE_CONTEXT_CLIENT_NAME': 5, - 'REQUIRE_JS_PLAYER': False - }, - 'android_music': { 'INNERTUBE_API_KEY': 'AIzaSyAOghZGza2MQSZkY_zfZ370N-PUdXEo8AI', 'INNERTUBE_CONTEXT': { |