Skip to content

Commit ecd3f6c

Browse files
committed
[YouTube] Clarify BotGuard API key's origin and disable related Sonar warning
1 parent 70ff47b commit ecd3f6c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ class PoTokenWebView private constructor(
324324

325325
companion object : PoTokenGenerator.Factory {
326326
private val TAG = PoTokenWebView::class.simpleName
327-
private const val GOOGLE_API_KEY = "AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"
327+
// Public API key used by BotGuard, which has been got by looking at BotGuard requests
328+
private const val GOOGLE_API_KEY = "AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw" // NOSONAR
328329
private const val REQUEST_KEY = "O43z0dpjhgX20SCx4KAo"
329330
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
330331
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.3"

0 commit comments

Comments
 (0)