[Android] Add "Speech" and "Vocal" to podcasts genres

Geoffrey Métais git at videolan.org
Mon Sep 3 11:24:29 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep  3 10:27:22 2018 +0200| [4645d7061bb54425c0a2d91bacaa1db619582170] | committer: Geoffrey Métais

Add "Speech" and "Vocal" to podcasts genres

Vocal

> https://code.videolan.org/videolan/vlc-android/commit/4645d7061bb54425c0a2d91bacaa1db619582170
---

 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 80490f7f4..3d681e884 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
@@ -409,7 +409,9 @@ public class MediaWrapper extends MediaLibraryItem implements Parcelable {
         return mType == TYPE_AUDIO && (TextUtils.isEmpty(mAlbum) && mLength > PODCAST_THRESHOLD
                 || "podcast".equalsIgnoreCase(mGenre)
                 || "audiobooks".equalsIgnoreCase(mGenre)
-                || "audiobook".equalsIgnoreCase(mGenre));
+                || "audiobook".equalsIgnoreCase(mGenre)
+                || "speech".equalsIgnoreCase(mGenre)
+                || "vocal".equalsIgnoreCase(mGenre));
     }
 
     public void setType(int type){



More information about the Android mailing list