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, {
560560 return that . _post ( this . api_location + 'cirrus/' , {
561561 data : _query
562562 } , 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 ) ) ;
564576 nextResultsToken = response . searchLibraryResponse . searchLibraryResult . nextResultsToken ;
565577 if ( null === nextResultsToken )
566578 return previousResults ;
Original file line number Diff line number Diff line change 33 "pluginName" : " amazon" ,
44 "author" : " Creepy Guy In The Corner" ,
55 "email" : " " ,
6- "version" : " 0.0.10 " ,
6+ "version" : " 0.0.11 " ,
77 "website" : " http://gettomahawk.com" ,
88 "description" : " Streams music from Amazon Music" ,
99 "type" : " resolver/javascript" ,
You can’t perform that action at this time.
0 commit comments