mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Removed UnsafeOptInUsageError annotation after media3 library update
This commit is contained in:
parent
ff8bf4f6bf
commit
490cce53e5
20 changed files with 14 additions and 53 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue