Skip to content

Commit

Permalink
Merge pull request #128 from citelao/dev
Browse files Browse the repository at this point in the history
Fix playlists in regexes
  • Loading branch information
citelao authored Jul 16, 2019
2 parents b7e8afb + 6a2b279 commit f353e4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog #

## v0.13.8 ##
- Fixed: Support new Spotify playlist syntax (without `user:` prefix).

## v0.13.7 ##
- Fixed: Bump up the Spotify API version so Spotifious works again

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.7](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.7](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)
Latest version: [v0.13.8](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.8](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)

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

Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ Spotifious works out of the box (just type `spotifious` in Alfred), but works be
</dict>
</dict>
<key>version</key>
<string>0.13.7</string>
<string>0.13.8</string>
<key>webaddress</key>
<string>https://github.com/citelao/Spotify-for-Alfred</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion src/citelao/Spotifious/Spotifious.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ protected function trim_value(&$value) {

// TODO cite
protected function is_spotify_uri($item) {
$regex = '/^(spotify:(?:album|artist|track|user:[^:]+:playlist):[a-zA-Z0-9]+)$/x';
$regex = '/^(spotify:(?:album|artist|track|(?:user:[^:]+:)?playlist):[a-zA-Z0-9]+)$/x';

return preg_match($regex, $item);
}
Expand Down

0 comments on commit f353e4c

Please sign in to comment.