[vlc-commits] HTTP intf: support opening of playlists in the browse dialog
Jean-Baptiste Kempf
git at videolan.org
Fri Jul 27 04:11:59 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 26 23:08:34 2012 +0200| [9855165f8168f0db54852d208fd8be8a3e5cffb1] | committer: Jean-Baptiste Kempf
HTTP intf: support opening of playlists in the browse dialog
(cherry picked from commit df3b867cf33330a3e75055722aff7dd54ca99f88)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=9855165f8168f0db54852d208fd8be8a3e5cffb1
---
share/lua/http/js/controlers.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/http/js/controlers.js b/share/lua/http/js/controlers.js
index 6ef5782..ab59bcf 100644
--- a/share/lua/http/js/controlers.js
+++ b/share/lua/http/js/controlers.js
@@ -172,7 +172,7 @@ function browse(dir) {
$('#browse_elements').empty();
$('element', data).each(function () {
var ext = $(this).attr('name').substr($(this).attr('name').lastIndexOf('.') + 1).toLowerCase();
- if ($(this).attr('type') == 'dir' || $.inArray(ext, video_types) != -1 || $.inArray(ext, audio_types) != -1) {
+ if ($(this).attr('type') == 'dir' || $.inArray(ext, video_types) != -1 || $.inArray(ext, audio_types) != -1 || $.inArray(ext, playlist_types) != -1) {
$('#browse_elements').append(createElementLi($(this).attr('name'), $(this).attr('type'), $(this).attr('uri'), ext));
}
});
More information about the vlc-commits
mailing list