Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow getting Opus streams with IOS client #1681

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
)
}
}