Update LyricUtil.java
This commit is contained in:
parent
8a8c2a8b88
commit
a224ec883e
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue