mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Update beets to 1.4.7
Also updates: - colorama-0.4.1 - jellyfish-0.6.1 - munkres-1.0.12 - musicbrainzngs-0.6 - mutagen-1.41.1 - pyyaml-3.13 - six-1.12.0 - unidecode-1.0.23
This commit is contained in:
parent
05b0fb498f
commit
e854005ae1
193 changed files with 15896 additions and 6384 deletions
|
@ -4,7 +4,7 @@ var timeFormat = function(secs) {
|
|||
return '0:00';
|
||||
}
|
||||
secs = Math.round(secs);
|
||||
var mins = '' + Math.round(secs / 60);
|
||||
var mins = '' + Math.floor(secs / 60);
|
||||
secs = '' + (secs % 60);
|
||||
if (secs.length < 2) {
|
||||
secs = '0' + secs;
|
||||
|
@ -147,7 +147,7 @@ var BeetsRouter = Backbone.Router.extend({
|
|||
},
|
||||
itemQuery: function(query) {
|
||||
var queryURL = query.split(/\s+/).map(encodeURIComponent).join('/');
|
||||
$.getJSON('/item/query/' + queryURL, function(data) {
|
||||
$.getJSON('item/query/' + queryURL, function(data) {
|
||||
var models = _.map(
|
||||
data['results'],
|
||||
function(d) { return new Item(d); }
|
||||
|
@ -161,7 +161,7 @@ var router = new BeetsRouter();
|
|||
|
||||
// Model.
|
||||
var Item = Backbone.Model.extend({
|
||||
urlRoot: '/item'
|
||||
urlRoot: 'item'
|
||||
});
|
||||
var Items = Backbone.Collection.extend({
|
||||
model: Item
|
||||
|
@ -264,7 +264,7 @@ var AppView = Backbone.View.extend({
|
|||
$('#extra-detail').empty().append(extraDetailView.render().el);
|
||||
},
|
||||
playItem: function(item) {
|
||||
var url = '/item/' + item.get('id') + '/file';
|
||||
var url = 'item/' + item.get('id') + '/file';
|
||||
$('#player audio').attr('src', url);
|
||||
$('#player audio').get(0).play();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue