diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-06-10 06:22:51 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-06-10 06:22:51 -0700 |
commit | 6a7ce1c3963bc09ac56b90f2129d84e9dc730e1b (patch) | |
tree | d914ccfaa8512df82197f93c7de23485124c54fb /subsonic-android | |
parent | 1fc1da5a19567eefe888347042edb0cbbf696d27 (diff) | |
download | dsub-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.java | 9 |
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); |