Skip to content

Commit

Permalink
Merge pull request #102 from citelao/hotfix/backslashes-playlists
Browse files Browse the repository at this point in the history
Fix searching backslashed playlists
  • Loading branch information
citelao committed Aug 2, 2017
2 parents 74fb22d + 75e4943 commit 27e6f06
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog #

## v0.13.3.3 #
- Fixed: Can now add playlists with `\` in their titles.
- Fixed: Removed light-colored edge of some icons

## v0.13.3.2 #
- Fixed: Alfred variables are now more reliably passed to the workflow. Should
fix several people's configuration bugs.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Spotifious uses Packal to make sure you always have the latest version. It gives

## Download & Install ##

Latest version: [v0.13.3.2](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.3.2](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)
Latest version: [v0.13.3.3](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.3.3](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)

An in-depth [installation guide](https://ben.stolovitz.com/Spotify-for-Alfred/download/) is available on the Spotifious website.

Expand Down
Binary file modified dist/Spotifious.alfredworkflow
Binary file not shown.
Binary file modified include/images/dash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified include/images/disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified include/images/psd/dash.psd
Binary file not shown.
Binary file modified include/images/psd/disabled.psd
Binary file not shown.
Binary file modified include/images/psd/track.psd
Binary file not shown.
Binary file modified include/images/psd/unchecked.psd
Binary file not shown.
Binary file modified include/images/single.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified include/images/track.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified include/images/unchecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ Spotifious works out of the box (just type `spotifious` in Alfred), but works be
</dict>
</dict>
<key>version</key>
<string>0.13.3.2</string>
<string>0.13.3.3</string>
<key>webaddress</key>
<string>https://github.com/citelao/Spotify-for-Alfred</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion src/citelao/OhAlfred/OhAlfred.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function plist($plist, $setting, $value = -1) {
unset($this->plists[$plist]);

if(!is_string($value)) {
$value = '"' . str_replace('"', '\"', str_replace('\"', '\\\"', json_encode($value))) . '"';
$value = '"' . addslashes(json_encode($value)) . '"';
}

$escaped_plist = escapeshellarg($plist);
Expand Down
4 changes: 2 additions & 2 deletions src/citelao/Spotifious/Spotifious.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function process($action) {

// Handle JSON if given

print_r("GGGG");
// print_r("GGGG");
if($action[0] == "{") {
$json = JsonParser::parse($action);
$options = (isset($json->options))
Expand Down Expand Up @@ -390,7 +390,7 @@ protected function update_playlists_cache($api) {
? $playlist->owner->display_name
: (property_exists($playlist->owner, 'id'))
? $playlist->owner->id
: "unkown"
: 'unknown'
);
}
$datetime = new \DateTime("now");
Expand Down

0 comments on commit 27e6f06

Please sign in to comment.