Commit 9855165f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

HTTP intf: support opening of playlists in the browse dialog

(cherry picked from commit df3b867cf33330a3e75055722aff7dd54ca99f88)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ac7e3199
......@@ -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));
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment