mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 23:43:37 +00:00
Removed deprecated kotlin-android-extensions
This commit is contained in:
@@ -15,7 +15,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class MusicUtil {
|
||||
@@ -122,7 +121,7 @@ public class MusicUtil {
|
||||
.replaceAll(""", "\"")
|
||||
.replaceAll("'", "'")
|
||||
.replaceAll("&", "'")
|
||||
.replaceAll("<a[\\s]+([^>]+)>((?:.(?!</a>))*.)</a>", "");
|
||||
.replaceAll("<a\\s+([^>]+)>((?:.(?!</a>))*.)</a>", "");
|
||||
}
|
||||
|
||||
return "";
|
||||
@@ -140,18 +139,6 @@ public class MusicUtil {
|
||||
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();
|
||||
else if (string.toLowerCase().contains(" featuring"))
|
||||
return Pattern.compile(" featuring", Pattern.CASE_INSENSITIVE).split(string)[0].trim();
|
||||
else return string;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<String> getReadableStrings(List<String> strings) {
|
||||
List<String> readableStrings = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user