Skip to content

Commit

Permalink
removed api keys from clients
Browse files Browse the repository at this point in the history
  • Loading branch information
gechoto authored Dec 29, 2024
1 parent 0d9602a commit 4dd77b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions innertube/src/main/java/com/zionhuang/innertube/InnerTube.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ class InnerTube {
}
}
userAgent(client.userAgent)
if (client.api_key != null) {
parameter("key", client.api_key)
}
parameter("prettyPrint", false)
}

Expand Down Expand Up @@ -233,7 +230,6 @@ class InnerTube {
client: YouTubeClient,
videoId: String,
) = httpClient.post("https://music.youtube.com/youtubei/v1/get_transcript") {
parameter("key", "AIzaSyC9XL3ZjWddXya6X74dJoCTL-WEYFDNX3")
headers {
append("Content-Type", "application/json")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ data class YouTubeClient(
val clientName: String,
val clientVersion: String,
val clientId: String,
val api_key: String? = null,
val userAgent: String,
val osVersion: String? = null,
val supportsLogin: Boolean = false,
Expand Down Expand Up @@ -54,7 +53,6 @@ data class YouTubeClient(
clientName = "WEB",
clientVersion = "2.20241126.01.00",
clientId = "1",
api_key = "AIzaSyC9XL3ZjWddXya6X74dJoCTL-WEYFDNX3",
userAgent = USER_AGENT_WEB,
)

Expand Down

0 comments on commit 4dd77b2

Please sign in to comment.