[Android] Add "Audiobook(s)" tag to podcast detection

Geoffrey Métais git at videolan.org
Mon Aug 7 13:22:50 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Aug  7 13:21:14 2017 +0200| [35f1ad01e8d9365fe64d7ec7f0687de9c6528575] | committer: Geoffrey Métais

Add "Audiobook(s)" tag to podcast detection

> https://code.videolan.org/videolan/vlc-android/commit/35f1ad01e8d9365fe64d7ec7f0687de9c6528575
---

 medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
index 4888f2b5a..3d8aecb52 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
@@ -403,7 +403,9 @@ public class MediaWrapper extends MediaLibraryItem implements Parcelable {
 
     public boolean isPodcast() {
         return mType == TYPE_AUDIO && (TextUtils.isEmpty(mAlbum) && mLength > PODCAST_THRESHOLD)
-                || ("podcast".equalsIgnoreCase(mGenre));
+                || ("podcast".equalsIgnoreCase(mGenre))
+                || ("audiobooks".equalsIgnoreCase(mGenre))
+                || ("audiobook".equalsIgnoreCase(mGenre));
     }
 
     public void setType(int type){



More information about the Android mailing list