');
$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('archives', {'site': '0xdb.org'}, function(result) {
$.each(result.archives, function(archive, path) {
backend.request('files', {'site': '0xdb.org', 'archive': archive}, function(result) {
var $archive = $('
');
$archive.html(archive);
$('#movies').append($archive);
for_each_sorted(result, function(movie, files) {
$archive.append(addMovie(movie, files));
});
});
});
});
});