Update LyricUtil.java

main
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
1 changed files with 8 additions and 3 deletions

View File

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