mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Removed UnsafeOptInUsageError annotation after media3 library update
This commit is contained in:
@@ -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(""", "\"")
|
||||
.replaceAll("'", "'")
|
||||
.replaceAll("&", "'")
|
||||
.replaceAll("
", "\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();
|
||||
|
||||
Reference in New Issue
Block a user