diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/view/SongView.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java index 3106d38c..f76f4f2a 100644 --- a/src/github/daneren2005/dsub/view/SongView.java +++ b/src/github/daneren2005/dsub/view/SongView.java @@ -164,6 +164,11 @@ public class SongView extends UpdateView implements Checkable { partialFile = downloadFile.getPartialFile(); partialFileExists = partialFile.exists(); isStarred = song.isStarred(); + + // Check if needs to load metadata: check against all fields that we know are null in offline mode + if(song.getBitrate() == null && song.getDuration() == null && song.getDiscNumber() == null && isWorkDone) { + song.loadMetadata(downloadFile.getCompleteFile()); + } } @Override |