[skip ci] update user agent, small locale fix
This commit is contained in:
1 parent
e070fc2df1
commit
384f41ba99
5 files changed
+9
-6
No files matched your search
+2
-2
@@ -77,8 +77,8 @@ function ShowTestDetails() as void
|
||||
|
||||
state = itemContent.state
|
||||
displayStates = {
|
||||
"passed": Locale.InvidiousTesting.Passed
|
||||
"failed": Locale.InvidiousTesting.Failed
|
||||
"passed": Tr(Locale.InvidiousTesting.Passed)
|
||||
"failed": Tr(Locale.InvidiousTesting.Failed)
|
||||
}
|
||||
|
||||
message = Tr(Locale.InvidiousTesting.Status) + ": " + Tr(ValidString(displayStates[state])) + `\n`
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
const VIDEO_PLAYER_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0"
|
||||
|
||||
const INNERTUBE_IOS_CLIENT_NAME = "5"
|
||||
const INNERTUBE_IOS_CLIENT_VERSION = "20.20.5"
|
||||
const INNERTUBE_IOS_DEVICE_MODEL = "iPhone16,2"
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Innertube
|
||||
function GetClientIdentity(cancellation = invalid as dynamic) as object
|
||||
request = HttpClient.Get("https://www.youtube.com/tv")
|
||||
request.Headers({
|
||||
"User-Agent": "Mozilla/5.0 (ChromiumStylePlatform) Cobalt/Version"
|
||||
"User-Agent": INNERTUBE_TV_USER_AGENT
|
||||
"Referer": "https://www.youtube.com/tv"
|
||||
"Accept-Language": "en-US"
|
||||
})
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#const DEBUG_LOG_VIDEO_QUALITY = false
|
||||
|
||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||
import "pkg:/components/Services/Innertube/Constants.bs"
|
||||
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
||||
import "pkg:/components/VideoPlayer/Lounge.bs"
|
||||
import "pkg:/components/VideoPlayer/SponsorBlock.bs"
|
||||
@@ -52,7 +53,7 @@ function Init()
|
||||
end if
|
||||
|
||||
httpAgent = m.top.getHttpAgent()
|
||||
httpAgent.AddHeader("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0")
|
||||
httpAgent.AddHeader("User-Agent", VIDEO_PLAYER_USER_AGENT)
|
||||
|
||||
#if DEBUG_LOG_VIDEO_QUALITY
|
||||
m.top.addFields({
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import "pkg:/components/Navigation/Navigation.bs"
|
||||
import "pkg:/components/Services/Innertube/Constants.bs"
|
||||
import "pkg:/components/VideoPlayerDev/PictureInPicture.bs"
|
||||
import "pkg:/components/VideoPlayerDev/PlayerUi.bs"
|
||||
import "pkg:/components/VideoQueue/VideoQueueUtils.bs"
|
||||
@@ -15,9 +16,8 @@ import "pkg:/source/utils/Types.bs"
|
||||
function Init()
|
||||
InitializePlayerUi()
|
||||
|
||||
|
||||
httpAgent = m.top.getHttpAgent()
|
||||
httpAgent.AddHeader("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0")
|
||||
httpAgent.AddHeader("User-Agent", VIDEO_PLAYER_USER_AGENT)
|
||||
end function
|
||||
|
||||
function OnNodeReady()
|
||||
|
||||
Reference in new issue
Block a user