Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from m4tthumphrey/master

Artist play counts and listeners, disable DiskCache by default
  • Loading branch information...
commit 84365a2276e288dfee3d76577a1b54ea94c330ea 2 parents 97807b0 + b9a0a91
@fxb authored
Showing with 2 additions and 3 deletions.
  1. +2 −2 src/Artist.php
  2. +0 −1  src/caller/CurlCaller.php
View
4 src/Artist.php
@@ -487,8 +487,8 @@ public static function fromSimpleXMLElement(SimpleXMLElement $xml){
Util::toString($xml->url),
$images,
Util::toBoolean($xml->streamable),
- ($xml->stats)?Util::toInteger($xml->stats->listeners):0,
- ($xml->stats)?Util::toInteger($xml->stats->playcount):0,
+ Util::toInteger($xml->listeners),
+ Util::toInteger($xml->playcount),
$tags,
$similar,
($xml->bio)?Util::toString($xml->bio->summary):"", // TODO: Biography object
View
1  src/caller/CurlCaller.php
@@ -34,7 +34,6 @@
*/
private function __construct(){
$this->curl = curl_init();
- $this->cache = new DiskCache();
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($this->curl, CURLOPT_USERAGENT, "PHP last.fm API (PHP/" . phpversion() . ")");
Please sign in to comment.
Something went wrong with that request. Please try again.