Update LyricUtil.java

This commit is contained in:
tva2000hn 2019-09-24 20:21:19 +07:00 committed by GitHub
parent 8a8c2a8b88
commit a224ec883e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,9 +99,14 @@ public class LyricUtil {
}
}
public static String getLrcPath2(String title, String artist) {
int fileExtPos = title.lastIndexOf(".");
String x2 = title.substring(0, title.length() -4 ) + ".lrc";
Log.d("damn2",x2);
String x2;
if(title.endsWith(".flac")||title.endsWith(".mogg")||title.endsWith(".alac")||title.endsWith(".aiff")||title.endsWith(".webv")){
x2= title.substring(0, title.length() -5 ) + ".lrc";
}
else{
x2= title.substring(0, title.length() -4 ) + ".lrc";}
return x2;
}