mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
YtAPI: Add more client infos for Android test suite
This commit is contained in:
parent
7f3ddad12e
commit
d49c762609
1 changed files with 14 additions and 5 deletions
|
@ -6,6 +6,7 @@ module YoutubeAPI
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
private DEFAULT_API_KEY = "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8"
|
private DEFAULT_API_KEY = "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8"
|
||||||
|
private ANDROID_API_KEY = "AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w"
|
||||||
|
|
||||||
# For Android versions, see https://en.wikipedia.org/wiki/Android_version_history
|
# For Android versions, see https://en.wikipedia.org/wiki/Android_version_history
|
||||||
private ANDROID_APP_VERSION = "19.14.42"
|
private ANDROID_APP_VERSION = "19.14.42"
|
||||||
|
@ -13,6 +14,9 @@ module YoutubeAPI
|
||||||
private ANDROID_SDK_VERSION = 31_i64
|
private ANDROID_SDK_VERSION = 31_i64
|
||||||
private ANDROID_VERSION = "12"
|
private ANDROID_VERSION = "12"
|
||||||
|
|
||||||
|
private ANDROID_TS_APP_VERSION = "1.9"
|
||||||
|
private ANDROID_TS_USER_AGENT = "com.google.android.youtube/1.9 (Linux; U; Android 12; US) gzip"
|
||||||
|
|
||||||
# For Apple device names, see https://gist.github.com/adamawolf/3048717
|
# For Apple device names, see https://gist.github.com/adamawolf/3048717
|
||||||
# For iOS versions, see https://en.wikipedia.org/wiki/IOS_version_history#Releases,
|
# For iOS versions, see https://en.wikipedia.org/wiki/IOS_version_history#Releases,
|
||||||
# then go to the dedicated article of the major version you want.
|
# then go to the dedicated article of the major version you want.
|
||||||
|
@ -90,7 +94,7 @@ module YoutubeAPI
|
||||||
name: "ANDROID",
|
name: "ANDROID",
|
||||||
name_proto: "3",
|
name_proto: "3",
|
||||||
version: ANDROID_APP_VERSION,
|
version: ANDROID_APP_VERSION,
|
||||||
api_key: "AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w",
|
api_key: ANDROID_API_KEY,
|
||||||
android_sdk_version: ANDROID_SDK_VERSION,
|
android_sdk_version: ANDROID_SDK_VERSION,
|
||||||
user_agent: ANDROID_USER_AGENT,
|
user_agent: ANDROID_USER_AGENT,
|
||||||
os_name: "Android",
|
os_name: "Android",
|
||||||
|
@ -116,10 +120,15 @@ module YoutubeAPI
|
||||||
platform: "MOBILE",
|
platform: "MOBILE",
|
||||||
},
|
},
|
||||||
ClientType::AndroidTestSuite => {
|
ClientType::AndroidTestSuite => {
|
||||||
name: "ANDROID_TESTSUITE",
|
name: "ANDROID_TESTSUITE",
|
||||||
name_proto: "30",
|
name_proto: "30",
|
||||||
version: "1.9",
|
version: ANDROID_TS_APP_VERSION,
|
||||||
api_key: DEFAULT_API_KEY,
|
api_key: ANDROID_API_KEY,
|
||||||
|
android_sdk_version: ANDROID_SDK_VERSION,
|
||||||
|
user_agent: ANDROID_TS_USER_AGENT,
|
||||||
|
os_name: "Android",
|
||||||
|
os_version: ANDROID_VERSION,
|
||||||
|
platform: "MOBILE",
|
||||||
},
|
},
|
||||||
|
|
||||||
# IOS
|
# IOS
|
||||||
|
|
Loading…
Reference in a new issue