[totem] data: Only handle video/audio types in Javascript
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] data: Only handle video/audio types in Javascript
- Date: Tue, 17 Apr 2012 16:10:55 +0000 (UTC)
commit 84ba37197db1638084a24dd0bbab71a740de624d
Author: Bastien Nocera <hadess hadess net>
Date: Tue Apr 17 17:10:19 2012 +0100
data: Only handle video/audio types in Javascript
So that sushi doesn't try to handle playlist formats.
data/mime-type-imports.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/data/mime-type-imports.sh b/data/mime-type-imports.sh
index 57d8e40..091d17e 100755
--- a/data/mime-type-imports.sh
+++ b/data/mime-type-imports.sh
@@ -6,12 +6,16 @@ echo_mime () {
echo " \"$i\","
}
-MIMETYPES=`grep -v '^#' $1 | grep -v x-content/ | grep -v x-scheme-handler/`
echo "/* generated with mime-type-imports.sh in the totem module, don't edit or"
echo " commit in the sushi module without filing a bug against totem */"
echo "let videoTypes = ["
+get_audio_mimetypes $1;
+for i in $MIMETYPES ; do
+ echo_mime;
+done
+get_video_mimetypes $1;
for i in $MIMETYPES ; do
echo_mime;
done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]