Skip to content

Commit

Permalink
set localonly to TRUE; add ' [preview]' to track titles
Browse files Browse the repository at this point in the history
  • Loading branch information
alf authored and RJ committed Jan 22, 2010
1 parent 0a76742 commit f96ba5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/amazon/amazon-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AmazonResolver extends PlaydarResolver {
protected $name = 'Amazon MP3 Preview resolver';
protected $targetTime = 500;
protected $weight = 20;
protected $localonly = FALSE;
protected $localonly = TRUE;

private $key;
private $secret;
Expand Down Expand Up @@ -63,7 +63,7 @@ function resolve($request) {
'score' => 1,
'source' => 'Amazon',
'artist' => (string) $attr->Creator,
'track' => (string) $attr->Title,
'track' => (string) $attr->Title . ' [preview]',
'duration' => 30, // (string) $attr->RunningTime,
'trackno' => (string) $attr->TrackSequence,
'url' => 'http://www.amazon.com/gp/dmusic/get_sample_url.html?ASIN=' . $asin,
Expand Down

0 comments on commit f96ba5e

Please sign in to comment.