aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-28 21:00:17 -0700
committerScott Jackson <daneren2005@gmail.com>2014-03-28 21:00:17 -0700
commit78fdf4a61fbb455297e89ae025c73862686ea366 (patch)
treee0362686fd8efa24935dd036f9dc11c2b9847e74 /src
parent691b2f792ea5f171a8b50766721b1188edf758cd (diff)
downloaddsub-78fdf4a61fbb455297e89ae025c73862686ea366.tar.gz
dsub-78fdf4a61fbb455297e89ae025c73862686ea366.tar.bz2
dsub-78fdf4a61fbb455297e89ae025c73862686ea366.zip
Fix issue if playlist file saved as .complete and they got pinned
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/OfflineMusicService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/OfflineMusicService.java b/src/github/daneren2005/dsub/service/OfflineMusicService.java
index 2ac19ebd..cf697441 100644
--- a/src/github/daneren2005/dsub/service/OfflineMusicService.java
+++ b/src/github/daneren2005/dsub/service/OfflineMusicService.java
@@ -427,6 +427,9 @@ public class OfflineMusicService extends RESTMusicService {
while( (line = buffer.readLine()) != null ){
File entryFile = new File(line);
+ if(!entryFile.exists()) {
+ entryFile = new File(line.replace(".complete", ""));
+ }
String entryName = getName(entryFile);
if(entryFile.exists() && entryName != null){
playlist.addChild(createEntry(context, entryFile, entryName, false));