Skip to content

Commit

Permalink
refactor(PoTokenWebView): use USER_AGENT from ExternalApi
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Feb 4, 2025
1 parent 98a0bf1 commit c0c210f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/com/github/libretube/api/ExternalApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ private const val GITHUB_API_URL = "https://api.github.com/repos/libre-tube/Libr
private const val SB_API_URL = "https://sponsor.ajay.app"
private const val RYD_API_URL = "https://returnyoutubedislikeapi.com"
private const val GOOGLE_API_KEY = "AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"
const val REQUEST_KEY = "O43z0dpjhgX20SCx4KAo"
const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.3"

interface ExternalApi {
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/github/libretube/api/PoTokenWebView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ class PoTokenWebView private constructor(
companion object {
private val TAG = PoTokenWebView::class.simpleName
private const val REQUEST_KEY = "O43z0dpjhgX20SCx4KAo"
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.3"
private const val JS_INTERFACE = "PoTokenWebView"

suspend fun newPoTokenGenerator(context: Context): PoTokenWebView {
Expand Down

0 comments on commit c0c210f

Please sign in to comment.