fix some genius issues
This commit is contained in:
@@ -12,6 +12,7 @@ import ru.vtosters.lite.di.singleton.VtOkHttpClient;
|
||||
import ru.vtosters.lite.utils.AndroidUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
public class Genius {
|
||||
private static final String KEY = "Bearer ZTejoT_ojOEasIkT9WrMBhBQOz6eYKK5QULCMECmOhvwqjRZ6WbpamFe3geHnvp3";
|
||||
@@ -38,10 +39,10 @@ public class Genius {
|
||||
return null;
|
||||
}
|
||||
|
||||
Log.d("Genius", "/search/multi?q=" + artist + "%20" + track + "&from_background=0");
|
||||
Log.d("Genius", "/search/multi?q=" + URLEncoder.encode(artist + " " + track) + "&from_background=0");
|
||||
|
||||
var request = new Request.a()
|
||||
.b(URL + "/search/multi?q=" + artist + "%20" + track + "&from_background=0")
|
||||
.b(URL + "/search/multi?q=" + URLEncoder.encode(artist + " " + track) + "&from_background=0")
|
||||
.a("User-Agent", "Genius/5.14.0 (Android; Android 13; Google Pixel 4 XL)")
|
||||
.a("Authorization", KEY)
|
||||
.a("x-genius-app-background-request", "0")
|
||||
|
||||
@@ -17,11 +17,6 @@
|
||||
android:entryValues="@array/animations_values"
|
||||
android:key="anim_rtrn_type"
|
||||
android:title="@string/franimation"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="useGenius"
|
||||
android:summary="@string/useGenius_summ"
|
||||
android:title="@string/useGenius_title"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="useNewSettings"
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
android:key="autocache"
|
||||
android:summary="@string/autocache_summ"
|
||||
android:title="@string/autocache_title"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="useGenius"
|
||||
android:summary="@string/useGenius_summ"
|
||||
android:title="@string/useGenius_title"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="useOldAppVer"
|
||||
|
||||
Reference in New Issue
Block a user