');
$m.css('padding-left', '50px');
$m.html(movie);
//var oshash = files[0].info.oshash;
//$img = $('
').attr('src', '/media/' + oshash
//$m.append($img);
var $files = $('
');
$files.css('padding-left', '50px');
for_each_sorted(files, function(k, v) {
if (v.video && v.video.length>0) {
addStill($files, v.oshash);
addVideo($files, v.oshash);
}
$files.append(k + '
');
});
$m.append($files);
return $m;
}
backend.request('files', function(result) {
for_each_sorted(result, function(archive, movies) {
var $archive = $('
');
$archive.html(archive);
$('#movies').append($archive);
for_each_sorted(movies, function(movie, files) {
$archive.append(addMovie(movie, files));
});
});
});
});