Permalink
Browse files

beets: add file size

File size was added to the web API in 1.0b16.
  • Loading branch information...
1 parent bdbd98e commit 8cf5c4c6df230d05c64df0fecbdedb6dc66bdb6d @sampsyo committed Aug 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 beets/beets.js
View
@@ -48,7 +48,7 @@ var BeetsResolver = Tomahawk.extend(TomahawkResolver,
url: baseUrl + '/item/' + item['id'] + '/file',
bitrate: Math.floor(item['bitrate'] / 1024),
duration: Math.floor(item['length']),
- size: 83375, //!
+ size: (item['size'] || 0),
score: 1.0,
extension: "mp3", //!
mimetype: "audio/mpeg", //!

0 comments on commit 8cf5c4c

Please sign in to comment.