Skip to content

Commit cb3747d

Browse files
committed
[amzn] set default bitrate
1 parent 3275332 commit cb3747d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

amazon/content/contents/code/amazon.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var AmazonResolver = Tomahawk.extend( Tomahawk.Resolver, {
2323
cacheTime: 300,
2424
name: 'Amazon Music',
2525
icon: '../images/icon.png',
26-
weight: 91,
26+
weight: 95,
2727
timeout: 8,
2828
user_agent: 'Mozilla/6.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0'
2929
},
@@ -199,6 +199,10 @@ var AmazonResolver = Tomahawk.extend( Tomahawk.Resolver, {
199199
type: "track"
200200
};
201201

202+
//We request HIGH quality with this resolver which corresponds to
203+
//256 VBR kbps, lets set it as default
204+
track.bitrate = track.bitrate || 256;
205+
202206
if(entry.albumReleaseDate)
203207
{
204208
track['releaseyear'] = entry.albumReleaseDate.split('-')[0];

0 commit comments

Comments
 (0)