File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,19 @@ var AmazonResolver = Tomahawk.extend( Tomahawk.Resolver, {
560
560
return that . _post ( this . api_location + 'cirrus/' , {
561
561
data : _query
562
562
} , true ) . then ( function ( response ) {
563
- previousResults = previousResults . concat ( response . searchLibraryResponse . searchLibraryResult . searchReturnItemList . map ( that . _convertTrack ) ) ;
563
+ previousResults = previousResults . concat ( response
564
+ . searchLibraryResponse
565
+ . searchLibraryResult
566
+ . searchReturnItemList
567
+ . filter ( function ( track ) {
568
+ track = track . metadata ;
569
+ return (
570
+ track . purchased == 'true' ||
571
+ track . uploaded == 'true' ||
572
+ ( track . primeStatus == 'PRIME' && that . _appConfig . featureController . robin == 1 ) ||
573
+ ( track . isMusicSubscription == 'true' && that . _appConfig . featureController . hawkfireAccess == 1 ) ) ;
574
+ } )
575
+ . map ( that . _convertTrack ) ) ;
564
576
nextResultsToken = response . searchLibraryResponse . searchLibraryResult . nextResultsToken ;
565
577
if ( null === nextResultsToken )
566
578
return previousResults ;
Original file line number Diff line number Diff line change 3
3
"pluginName" : " amazon" ,
4
4
"author" : " Creepy Guy In The Corner" ,
5
5
"email" : " " ,
6
- "version" : " 0.0.10 " ,
6
+ "version" : " 0.0.11 " ,
7
7
"website" : " http://gettomahawk.com" ,
8
8
"description" : " Streams music from Amazon Music" ,
9
9
"type" : " resolver/javascript" ,
You can’t perform that action at this time.
0 commit comments