Removed UnsafeOptInUsageError annotation after media3 library update

This commit is contained in:
antonio 2022-12-28 14:29:09 +01:00
parent ff8bf4f6bf
commit 490cce53e5
20 changed files with 14 additions and 53 deletions

View file

@ -49,7 +49,6 @@ public class MusicUtil {
return Uri.parse(uri.toString());
}
@SuppressLint("UnsafeOptInUsageError")
public static Uri getDownloadUri(String id) {
Map<String, String> params = App.getSubsonicClientInstance(App.getInstance(), false).getParams();
@ -124,6 +123,18 @@ public class MusicUtil {
return "";
}
public static String getReadableLyrics(String string) {
if (string != null) {
return string
.replaceAll("&#34;", "\"")
.replaceAll("&#39;", "'")
.replaceAll("&amp;", "'")
.replaceAll("&#xA;", "\n");
}
return "";
}
public static String normalizedArtistName(String string) {
if (string != null) {
if (string.toLowerCase().contains(" feat.")) return Pattern.compile(" feat.", Pattern.CASE_INSENSITIVE).split(string)[0].trim();