aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-30 13:06:05 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-30 13:06:05 -0700
commit9481c877f3bcc35c21129466c0e5f3fa75a67899 (patch)
treeb74bda60139d1b4db925288ed62809c7a0d22159 /src
parentdea9f0d5e91b59b370d630839a22515d593e899f (diff)
downloaddsub-9481c877f3bcc35c21129466c0e5f3fa75a67899.tar.gz
dsub-9481c877f3bcc35c21129466c0e5f3fa75a67899.tar.bz2
dsub-9481c877f3bcc35c21129466c0e5f3fa75a67899.zip
Also auto bookmark audio books
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());