[totem/wip/hadess/remove-audio-mimes: 3/4] data: Add playlist/media helper




commit 45aa83b4da9609357483d034bba9062d698726f7
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Aug 20 11:55:27 2020 +0200

    data: Add playlist/media helper

 data/mime-functions.sh | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/data/mime-functions.sh b/data/mime-functions.sh
index 0497b043e..5c3b37493 100644
--- a/data/mime-functions.sh
+++ b/data/mime-functions.sh
@@ -12,3 +12,7 @@ get_video_mimetypes ()
        MIMETYPES="$MIMETYPES audio/x-pn-realaudio"
 }
 
+get_playlist_media_mimetypes ()
+{
+       MIMETYPES=`grep -v '^#' $1 | grep -E 
"text/google-video-pointer|application/x-quicktime-media-link|application/smil|application/smil+xml|application/x-smil|application/xspf+xml|x-content/*"`
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]