Skip to content

Commit

Permalink
[amzn] set default bitrate
Browse files Browse the repository at this point in the history
  • Loading branch information
theli-ua committed Nov 22, 2016
1 parent 3275332 commit cb3747d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion amazon/content/contents/code/amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var AmazonResolver = Tomahawk.extend( Tomahawk.Resolver, {
cacheTime: 300,
name: 'Amazon Music',
icon: '../images/icon.png',
weight: 91,
weight: 95,
timeout: 8,
user_agent: 'Mozilla/6.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0'
},
Expand Down Expand Up @@ -199,6 +199,10 @@ var AmazonResolver = Tomahawk.extend( Tomahawk.Resolver, {
type: "track"
};

//We request HIGH quality with this resolver which corresponds to
//256 VBR kbps, lets set it as default
track.bitrate = track.bitrate || 256;

if(entry.albumReleaseDate)
{
track['releaseyear'] = entry.albumReleaseDate.split('-')[0];
Expand Down

0 comments on commit cb3747d

Please sign in to comment.