Skip to content

Commit

Permalink
Updated fetch to self::fetch for image fix
Browse files Browse the repository at this point in the history
Updated extension
Updated release
  • Loading branch information
phpfunk committed Jul 9, 2014
1 parent 3a2e739 commit ec396db
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified Spotify.alfredworkflow
Binary file not shown.
2 changes: 1 addition & 1 deletion libs/Releases.php
Expand Up @@ -16,7 +16,7 @@ public static function get($repo, $release, $user='phpfunk', $max_releases=5)
$arr[$version] = $obj->name;
}
}

krsort($arr);

$releases = array();
Expand Down
2 changes: 1 addition & 1 deletion libs/Tools.php
Expand Up @@ -45,7 +45,7 @@ public static function fetch($url)

public static function getTrackArtwork($type, $id)
{
$html = fetch('http://open.spotify.com/' . $type . '/' . $id);
$html = self::fetch('http://open.spotify.com/' . $type . '/' . $id);
if (! empty($html)) {
preg_match_all('/.*?og:image.*?content="(.*?)">.*?/is', $html, $m);
return (isset($m[1][0])) ? $m[1][0] : '';
Expand Down
2 changes: 1 addition & 1 deletion releases.php
@@ -1,3 +1,3 @@
<?php
include dirname(__FILE__) . '/autoload.php';
Releases::get('alfred-spotify-controls', '2.2.8');
Releases::get('alfred-spotify-controls', '2.2.9');

0 comments on commit ec396db

Please sign in to comment.