Skip to content

Commit

Permalink
Remove home tab(just the tab not the content) & clean up code a little
Browse files Browse the repository at this point in the history
  • Loading branch information
LuftVerbot committed Jul 20, 2024
1 parent 2d0dc18 commit f406fdb
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ class DeezerApi(private val settings: Settings = Settings()) {
urlBuilder.addQueryParameter("gateway_input", gatewayInput)
}


val url = urlBuilder.build()

// Create request body
Expand Down Expand Up @@ -179,7 +178,7 @@ class DeezerApi(private val settings: Settings = Settings()) {
}

if(body.contains("\"VALID_TOKEN_REQUIRED\":\"Invalid CSRF token\"")) {
if(email == "" && pass == "") {
if(email.isEmpty() && pass.isEmpty()) {
DeezerUtils.setArlExpired(true)
throw Exception("Please re-login (Best use User + Pass method)")
} else {
Expand Down
Loading

0 comments on commit f406fdb

Please sign in to comment.