Skip to content

Commit

Permalink
innertube: add osVersion to IOS client to get Opus streams
Browse files Browse the repository at this point in the history
  • Loading branch information
gechoto authored and mikooomich committed Nov 2, 2024
1 parent f0a2fd5 commit 685cb24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ data class Context(
data class Client(
val clientName: String,
val clientVersion: String,
val osVersion: String?,
val gl: String,
val hl: String,
val visitorData: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ data class YouTubeClient(
val clientVersion: String,
val api_key: String,
val userAgent: String,
val osVersion: String? = null,
val referer: String? = null,
) {
fun toContext(locale: YouTubeLocale, visitorData: String?) = Context(
client = Context.Client(
clientName = clientName,
clientVersion = clientVersion,
osVersion = osVersion,
gl = locale.gl,
hl = locale.hl,
visitorData = visitorData
Expand Down Expand Up @@ -68,6 +70,7 @@ data class YouTubeClient(
clientVersion = "19.29.1",
api_key = "AIzaSyB-63vPrdThhKuerbB2N_l7Kwwcxj6yUAc",
userAgent = USER_AGENT_IOS,
osVersion = "17.5.1.21F90",
)
}
}

0 comments on commit 685cb24

Please sign in to comment.