aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
-rw-r--r--src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index fa09a060..e5495bc2 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1860,7 +1860,7 @@ public class DownloadService extends Service {
int duration = getPlayerDuration();
// If song is podcast or long go ahead and auto add a bookmark
- if(entry.isPodcast() || duration > (10L * 60L * 1000L)) {
+ if(entry.isPodcast() || entry.isAudiBook() || duration > (10L * 60L * 1000L)) {
final Context context = this;
final int position = getPlayerPosition();
diff --git a/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java b/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java
index 1dc22ff9..683f6857 100644
--- a/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java
+++ b/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java
@@ -70,6 +70,8 @@ public class MusicDirectoryEntryParser extends AbstractParser {
String type = get("type");
if("podcast".equals(type)) {
entry.setType(MusicDirectory.Entry.TYPE_PODCAST);
+ } else if("audiobook".equals(type)) {
+ entry.setType(MusicDirectory.Entry.TYPE_AUDIO_BOOK);
}
} else if(!"".equals(artist)) {
entry.setPath(artist + "/" + entry.getTitle());