Permalink
Browse files

set localonly to TRUE; add ' [preview]' to track titles

  • Loading branch information...
alf authored and RJ committed Jan 6, 2010
1 parent 0a76742 commit f96ba5e3b95df51f214b0eec3008783cba42332f
Showing with 2 additions and 2 deletions.
  1. +2 −2 contrib/amazon/amazon-resolver.php
@@ -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;
@@ -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,

0 comments on commit f96ba5e

Please sign in to comment.