aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-10 06:22:51 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-10 06:22:51 -0700
commit6a7ce1c3963bc09ac56b90f2129d84e9dc730e1b (patch)
treed914ccfaa8512df82197f93c7de23485124c54fb /subsonic-android
parent1fc1da5a19567eefe888347042edb0cbbf696d27 (diff)
downloaddsub-6a7ce1c3963bc09ac56b90f2129d84e9dc730e1b.tar.gz
dsub-6a7ce1c3963bc09ac56b90f2129d84e9dc730e1b.tar.bz2
dsub-6a7ce1c3963bc09ac56b90f2129d84e9dc730e1b.zip
Breaks stuff
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/view/SongView.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
index fc50ff79..51927304 100644
--- a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
+++ b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java
@@ -79,15 +79,6 @@ public class SongView extends UpdateView implements Checkable {
try {
MediaMetadataRetriever metadata = new MediaMetadataRetriever();
metadata.setDataSource(file.getAbsolutePath());
- String discNumber = metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER);
- if(discNumber == null) {
- discNumber = "1/1";
- }
- int slashIndex = discNumber.indexOf("/");
- if(slashIndex > 0) {
- discNumber = discNumber.substring(0, slashIndex);
- }
- song.setDiscNumber(Integer.parseInt(discNumber));
String bitrate = metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_BITRATE);
song.setBitRate(Integer.parseInt((bitrate != null) ? bitrate : "0") / 1000);
String length = metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION);