Skip to content

Commit 022aff3

Browse files
committed
Merge branch '2.2.6'
2 parents 7752868 + 58d5156 commit 022aff3

File tree

7 files changed

+22
-12
lines changed

7 files changed

+22
-12
lines changed

Spotify.alfredworkflow

71 Bytes
Binary file not shown.

autocomplete.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?php
2-
include dirname(__FILE__) . '/autoload.php';
3-
include dirname(__FILE__) . '/shared/commands.php';
4-
include dirname(__FILE__) . '/shared/query.php';
2+
$dirname = dirname(__FILE__);
3+
include $dirname . '/autoload.php';
4+
include $dirname . '/shared/commands.php';
5+
include $dirname . '/shared/query.php';
56

67
$results = array();
78
foreach ($commands as $k => $arr) {
8-
if (empty($query) || substr($k, 0, $len) == $key) {
9+
if (! empty($query) && substr($k, 0, $len) == $key) {
910
$query = ($space === false) ? $k : $query;
1011
array_push($results, array(
1112
'uid' => $k,

autoload.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
function __autoload($class)
43
{
54
require dirname(__FILE__) . '/libs/' . $class . '.php';

execute.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
2-
include dirname(__FILE__) . '/autoload.php';
3-
include dirname(__FILE__) . '/shared/commands.php';
4-
include dirname(__FILE__) . '/shared/query.php';
2+
$dirname = dirname(__FILE__);
3+
include $dirname . '/autoload.php';
4+
include $dirname . '/shared/commands.php';
5+
include $dirname . '/shared/query.php';
56

6-
$app_dir = dirname(__FILE__) . '/applescripts/';
7+
$app_dir = $dirname . '/applescripts/';
78
$query = trim(str_replace($key, '', $query));
89

910
if (array_key_exists($key, $commands)) {

libs/Releases.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static function get($repo, $release, $user='phpfunk', $max_releases=5)
1616
$arr[$version] = $obj->name;
1717
}
1818
}
19+
1920
krsort($arr);
2021

2122
$releases = array();
@@ -38,7 +39,6 @@ public static function get($repo, $release, $user='phpfunk', $max_releases=5)
3839
}
3940

4041
array_push($releases, array(
41-
'uid' => $release,
4242
'arg' => $release,
4343
'title' => $title,
4444
'subtitle' => $subtitle,
@@ -55,7 +55,6 @@ public static function get($repo, $release, $user='phpfunk', $max_releases=5)
5555
else {
5656
$release = array();
5757
array_push($releases, array(
58-
'uid' => 'error',
5958
'arg' => 'error',
6059
'title' => 'Error',
6160
'subtitle' => 'There was an error extracting the releases from Github.',

releases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22
include dirname(__FILE__) . '/autoload.php';
3-
Releases::get('alfred-spotify-controls', '2.2.5');
3+
Releases::get('alfred-spotify-controls', '2.2.6');

shared/commands.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@
134134
'title' => 'Get Help',
135135
'subtitle' => 'Read the help file for this workflow',
136136
'bash' => 'open "https://github.com/phpfunk/alfred-spotify-controls/wiki"'
137+
),
138+
'bug' => array(
139+
'title' => 'Submit a Bug',
140+
'subtitle' => 'Submit a bug report about this workflow',
141+
'bash' => 'open "https://github.com/phpfunk/alfred-spotify-controls/issues/new"'
142+
),
143+
'feature' => array(
144+
'title' => 'Submit a Feature Request',
145+
'subtitle' => 'Submit a feature request for this workflow',
146+
'bash' => 'open "https://github.com/phpfunk/alfred-spotify-controls/issues/new"'
137147
)
138148
);
139149

0 commit comments

Comments
 (0)