Skip to content

Commit

Permalink
updated tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
citelao committed Dec 21, 2014
1 parent 30f6b0b commit 608c0cc
Show file tree
Hide file tree
Showing 16 changed files with 52 additions and 16 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog #

## v0.12 ##
## v0.11.2 ##
- Added: opt-out feature for location information
- Changed: better installation guide

## v0.11.1 ##
- Fixed: non-responsiveness after some requests to Spotify

## v0.11 ##
Expand Down
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,37 @@ A quick rundown of its coolness:
### A controller, not a workflow ###

Spotifious just *feels* fun to use, like a real plugin for Alfred, not a workflow. It
can do in-depth, album-scouring searches and gives you useful information even if something goes wrong.
can do in-depth, album-scouring searches and gives you useful information even if something goes wrong. Filter by artist or album, search for specific tracks or just plain see what's playing. It's all there.

Not unlike the iTunes Mini Player.

### Alfred-like ###

Spotifious is also especially Alfred-like. Just start typing to scour Spotify's servers for music. Browse through artists and albums like nobody's business and drill down through Queen's huge anthologies with a snappy context-based search.
Spotifious is also especially Alfred-like. Just start typing to scour Spotify's servers for music. Browse through artists and albums like nobody's business and drill down through Queen's huge anthologies with a snappy context-based search and filtering. Your frequent searches rise to the top, and your controls pop up with the letter `c`.

### Smart ###

Spotifious uses Packal to make sure you always have the latest version. It gives you a heads-up about what's going on with Spotify *the moment you
start it*. And don't worry about errors— we'll handle those.
Spotifious uses Packal to make sure you always have the latest version. It gives you a heads-up about what's going on with Spotify *the moment you start it*. And don't worry about errors— we'll handle those. All you have to do is choose how you want to pop it up on screen.

## Download & Install ##

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

1. [Download](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip)
this repository.
2. Open `Spotifious.alfredworkflow` by double-clicking it or dragging it into
Alfred.
3. Double-click the thingy marked `Hotkey`.
3. Double-click the first thingy marked `Hotkey`.
4. Click the textfield labeled `Hotkey` and press `^⌘⏎`.
5. Click `Save` to store the binding.
6. Continue on with your merry day— but now with Spotifious.
6. Bind the other hotkeys as you wish. Their actions are visible in the `Text` field, under `Argument`.
7. Pop up Spotifious with the key command you set— I would have `^⌘⏎`.
8. Follow the instructions on the settings menu.
9. You'll be asked to type in your country.
- Type it in, if you'd like. This option is recommmended.
- Choose `I'd rather not give a country!`. The country is stored locally and only sent to Spotify to narrow results, with no other identifying information, but Spotifious can avoid that if you'd prefer. Choosing this option will noticeably degrade your search results.
- You can always change your settings by typing `s` at the main menu.
10. Continue on with your merry day— but now with Spotifious.

![A visual install guide](include/screenshots/install.png)

Expand All @@ -69,6 +75,14 @@ If you're looking through a really long album or a particularly prodigious artis

**Note:** You can always leave a menu and go back just by pressing ``.

You can access a small controls menu by typing `c` at the main menu.

![A preview of the controls menu](include/screenshots/controls.png)

You can change your settings by typing `s` at the main menu.

![The settings menu](include/screenshots/settings.png)

## Acknowledgements ##

A lot of people helped out on this:
Expand All @@ -92,11 +106,12 @@ Oh, and thanks for reading this whole README. I hope you enjoy Spotifious!

See `CHANGELOG.md` for more detailed information.

- v0.11.1: fixed response freezing
- v0.11: new API, hotkeys, and notifications
- v0.11.2: Location opt-out and tutorial
- v0.11.1: Fixed response freezing
- v0.11: New API, hotkeys, and notifications
- v0.10: Location-based filtering
- v0.9.4: Actually implemented the aforementioned changes
- v0.9.3: more compatibility changes for PHP v5.3
- v0.9.3: More compatibility changes for PHP v5.3
- v0.9.2: Compatibility changes for PHP v5.3
- v0.9.1: Fixed "no track" bug.
- v0.9: Added error reporting and context-based searching; restructrued app.
Expand Down
Binary file modified Spotifious.alfredworkflow
Binary file not shown.
Binary file modified include/screenshots/compilation.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/screenshots/compilation.psd
Binary file not shown.
Binary file added include/screenshots/controls.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/screenshots/install.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/screenshots/install.psd
Binary file not shown.
Binary file modified include/screenshots/loading.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/screenshots/main_menu.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 added include/screenshots/settings.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 @@ -345,7 +345,7 @@
</array>
<key>readme</key>
<string># Spotifious
# v0.10
# v0.11
I’ve worked a long time on it to make it as good as it can be, and if you have any ideas to make it better or if you need to complain, leave me a note on my GitHub page or on the forum threads, linked below.
Expand Down
6 changes: 5 additions & 1 deletion src/citelao/Spotifious/Menus/DetailAlbum.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public function __construct($options) {
$this->name = $artistJson->name;
$this->type = $artistJson->type;

$tracksFetcher = new JsonFetcher("https://api.spotify.com/v1/albums/{$options['id']}/tracks?market=$locale");
$url = "https://api.spotify.com/v1/albums/{$options['id']}/tracks";
if($locale != 'not-given') {
$url .= "?market=$locale";
}
$tracksFetcher = new JsonFetcher($url);
$tracksJson = $tracksFetcher->run();

$this->tracks = array();
Expand Down
6 changes: 5 additions & 1 deletion src/citelao/Spotifious/Menus/DetailArtist.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public function __construct($options) {
$this->name = $artistJson->name;
$this->type = $artistJson->type;

$albumFetcher = new JsonFetcher("https://api.spotify.com/v1/artists/{$options['id']}/albums?market=$locale");
$url = "https://api.spotify.com/v1/artists/{$options['id']}/albums";
if($locale != 'not-given') {
$url .= "?market=$locale";
}
$albumFetcher = new JsonFetcher($url);
$albumsJson = $albumFetcher->run();

$this->albums = array();
Expand Down
5 changes: 4 additions & 1 deletion src/citelao/Spotifious/Menus/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ public function __construct($query) {

/* Fetch and parse the search results. */
$urlQuery = str_replace("%3A", ":", urlencode($query));
$url = "https://api.spotify.com/v1/search?q=$urlQuery&type=artist,album,track&market=$locale";
$url = "https://api.spotify.com/v1/search?q=$urlQuery&type=artist,album,track";
if($locale != 'not-given') {
$url .= "&market=$locale";
}

$fetcher = new JsonFetcher($url);
$json = $fetcher->run();
Expand Down
8 changes: 7 additions & 1 deletion src/citelao/Spotifious/Menus/SetupCountryCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public function __construct($query) {

$this->countries[] = $currentCountry;
}

$this->countries[] = array(
'name' => "I'd rather not give a country!",
'code' => 'not-given'
);
}

public function output() {
Expand Down Expand Up @@ -66,7 +71,8 @@ protected function countrySort($a, $b) {
"United States", // America first hehehe
"United Kingdom",
"Canada",
"Australia"
"Australia",
"I'd rather not give a country!"
);

if(in_array($a['title'], $common)) {
Expand Down

0 comments on commit 608c0cc

Please sign in to comment.