Skip to content

Commit

Permalink
Update innertube client versions
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Nov 29, 2024
1 parent fa908c1 commit 4ef35b0
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions playlet-lib/src/components/Services/Innertube/InnertubeService.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ import "pkg:/source/services/HttpClient.bs"
import "pkg:/source/utils/ObjectUtils.bs"
import "pkg:/source/utils/TimeUtils.bs"

const INNERTUBE_IOS_CLIENT_NAME = "5"
const INNERTUBE_IOS_CLIENT_VERSION = "19.09.3"
const INNERTUBE_IOS_OS_VERSION = "15.6"
const INNERTUBE_IOS_USER_AGENT = "com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)"

const INNERTUBE_WEB_CLIENT_NAME = "1"
const INNERTUBE_WEB_CLIENT_VERSION = "2.20241126.01.00"
const INNERTUBE_WEB_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0"
const INNERTUBE_WEB_BROWSER_NAME = "Chrome"
const INNERTUBE_WEB_BROWSER_VERSION = "131.0.0.0"

namespace InnertubeService

function GetVideoMetadata(videoId as string, options = invalid as object) as object
Expand Down Expand Up @@ -89,9 +100,9 @@ namespace InnertubeService
"screenWidthPoints": 2560
"visitorData": ""
"clientName": "iOS"
"clientVersion": "18.06.35"
"clientVersion": INNERTUBE_IOS_CLIENT_VERSION
"osName": "iOS"
"osVersion": "10.0"
"osVersion": INNERTUBE_IOS_OS_VERSION
"platform": "MOBILE"
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
"userInterfaceTheme": "USER_INTERFACE_THEME_LIGHT"
Expand All @@ -101,12 +112,6 @@ namespace InnertubeService
"deviceModel": "iPhone10,6"
"utcOffsetMinutes": -240
"memoryTotalKbytes": "8000000"
"mainAppWebInfo": {
"graftUrl": "https://www.youtube.com"
"pwaInstallabilityStatus": "PWA_INSTALLABILITY_STATUS_UNKNOWN"
"webDisplayMode": "WEB_DISPLAY_MODE_BROWSER"
"isWebNativeShareAvailable": true
}
}
"user": {
"enableSafetyMode": false
Expand All @@ -124,9 +129,9 @@ namespace InnertubeService
"accept": "*/*"
"accept-language": "*"
"content-type": "application/json"
"user-agent": "com.google.ios.youtube/18.06.35 (iPhone; CPU iPhone OS 14_4 like Mac OS X; en_US)"
"x-youtube-client-name": "5"
"x-youtube-client-version": "18.06.35"
"user-agent": INNERTUBE_IOS_USER_AGENT
"x-youtube-client-name": INNERTUBE_IOS_CLIENT_NAME
"x-youtube-client-version": INNERTUBE_IOS_CLIENT_VERSION
})

return request
Expand All @@ -148,7 +153,7 @@ namespace InnertubeService
"screenWidthPoints": 2560
"visitorData": ""
"clientName": "WEB"
"clientVersion": "2.20241010.09.00"
"clientVersion": INNERTUBE_WEB_CLIENT_VERSION
"osName": "Windows"
"osVersion": "10.0"
"platform": "DESKTOP"
Expand All @@ -158,8 +163,8 @@ namespace InnertubeService
"originalUrl": "https://www.youtube.com"
"deviceMake": ""
"deviceModel": ""
"browserName": "Chrome"
"browserVersion": "109.0.0.0"
"browserName": INNERTUBE_WEB_BROWSER_NAME
"browserVersion": INNERTUBE_WEB_BROWSER_VERSION
"utcOffsetMinutes": -240
"memoryTotalKbytes": "8000000"
"mainAppWebInfo": {
Expand All @@ -185,9 +190,9 @@ namespace InnertubeService
"accept": "*/*"
"accept-language": "*"
"content-type": "application/json"
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0"
"x-youtube-client-name": "1"
"x-youtube-client-version": "2.20241010.09.00"
"user-agent": INNERTUBE_WEB_USER_AGENT
"x-youtube-client-name": INNERTUBE_WEB_CLIENT_NAME
"x-youtube-client-version": INNERTUBE_WEB_CLIENT_VERSION
})

return request
Expand Down

0 comments on commit 4ef35b0

Please sign in to comment.