Commit 955ed3ca authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Media: return the title without the extension to match previous behaviour

parent 0711b73d
...@@ -294,8 +294,10 @@ public class Media implements Comparable<Media> { ...@@ -294,8 +294,10 @@ public class Media implements Comparable<Media> {
public String getTitle() { public String getTitle() {
if (mTitle != null) if (mTitle != null)
return mTitle; return mTitle;
else else {
return getFileName(); int end = getFileName().lastIndexOf(".");
return getFileName().substring(0, end);
}
} }
public String getArtist() { public String getArtist() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment