pacmax beta

Alfred Pac by citelao on GitHub

Spotify For Alfred

aka Spotifious — a natural Spotify controller for Alfred

From their README

Spotifious

a natural Spotify controller for Alfred

The magical interface

So, you've heard of Spotifious, eh? A natural Spotify controller for Alfred? Searches Spotify, controls your music, generally rocks?

It's built off a lot of other people's work— PHPFunk and David Ferguson especially— and tries to match the functionality of Alfred's integrated iTunes player. It's not perfect, but it does the job. And I think it's pretty cool.

Features

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. 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 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. All you have to do is choose how you want to pop it up on screen.

Download & Install

Latest version: v0.13.9 | Latest dev build: v0.13.9

An in-depth installation guide is available on the Spotifious website.

  1. Download this repository.
  2. Open Spotifious.alfredworkflow in the dist folder by double-clicking it or dragging it into Alfred.
  3. Double-click the first thingy marked Hotkey.
  4. Click the textfield labeled Hotkey and press ^⌘⏎.
  5. Click Save to store the binding.
  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 set-up menu.
    1. You'll be asked to choose your country (for better search results— you can opt out).
    2. You'll create a Spotify application (or not, you can opt out).
    3. You'll link the new app to Spotifious.
  9. Continue on with your merry day— but now with Spotifious.

A visual install guide

How to Use

So let's assume you've downloaded and installed the workflow. Now what?

  1. Press ^⌘⏎.

Good! You should briefly see a loading entry, then the main menu:

Loading... Main Menu

You can action the song title (press ⏎) to play or pause the song, action the album or artist to search for that album or artist, or just start typing to search for cool music.

Some cool screenshots

Once you've searched for something, you can continue to browse albums and arists through Spotifious. Actioning an artist will bring up a list of their albums, and actioning an album will bring up the track list.

If you're looking through a really long album or a particularly prodigious artist, you can also narrow your search by typing a little more— Spotifious will search for results within the album or artist.

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

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

The settings menu

Acknowledgements

A lot of people helped out on this:

  • vdesabou and I trade ideas a ton
  • PHPfunk and his PHP Alfred workflow inspired much of OhAlfred
  • David Ferguson helped with some iffy Alfred glitches
  • jwilsson's Spotify PHP web API.
  • a slightly modified version of Entypo icon font face for icons.
  • and many other people mentioned in the code.

Thanks to everyone who helped, and thanks to everyone who uses my work! Oh, and thanks for reading this whole README. I hope you enjoy Spotifious!

Development

You must install dependencies manually. Install Composer and then run make init. Then you can proceed with development! (if you do not want to do a global install, run php composer.phar install from this directory)

Command line development for Alfred 3 is currently not working, since we depend on several environment variables. Eventually, if you are developing for Alfred version 3 and want to run these files from the command line (php -f main.php -- "args"), you will need to run in debug mode : DEBUG=true php -f main.php -- "args".

Deployment

  1. Bump version here
  2. Update CHANGELOG
  3. Update .alfredworkflow version
  4. Update Alfred forum
  5. Update Packal
  6. Update GitHub Pages site

TODO

  • Allow ⎇, ^, and ⌘ to function as modifiers (Open in Spotify, other things?).
  • More in-depth Spotify control (radio, queuing, playlists)
  • Make main menu links go directly to menus.

Changelog

This project uses pseudo-SemVer. It will use SemVer when we hit v1.0.0.

See CHANGELOG.md.

License

This code is licensed as written in the LICENSE.md file.

Latest release

  • 0.13.10.14 years ago, 1.3 MBDownload

    I forgot some quotes and that broke playing music 😬

19 earlier releases
  • 0.13.104 years ago, 1.3 MBDownload

    PHP is no longer installed by default in macOS Monterey, so this version should help you install PHP if it's not present.

  • 0.13.96 years ago, 1.3 MBDownload

    Fix a bug that prevented Spotifious from working on some versions of PHP.

  • 0.13.87 years ago, 1.3 MBDownload

    Fix a bug where Spotify playlists without a user in their URI could not be viewed.

  • 0.13.77 years ago, 1.3 MBDownload

    Key changes:

    • Fix a bug that completely prevented Spotifious from working for a long time
    • Fix a bug that prevented Spotifious from sending notifications
    • Introduce more automated checkin verification
  • 0.13.58 years ago, 1.2 MBDownload

    Spotifious now makes sure you have Spotify installed! You can also instantly play non-tracks from search by using ctrl.

  • 0.13.49 years ago, 1.2 MBDownload
  • 0.13.3.29 years ago, 1.2 MBDownload

    Fixes a bug where Spotifious thought users of the newest version of Alfred were actually using the oldest version of Alfred. Environment variables are now passed robustly.

  • 0.13.3.1f9 years ago, 1.2 MBDownload

    Same as Point Three Fixed, but with dependencies properly installed. That's my bad.

  • 0.13.3.19 years ago, 1.2 MBDownload

    Fixing some setup bugs for upgraders and make installation a bit easier.

    • Added: there's a small install guide inside the Workflow menu
    • Fixed: Small playlists now appear correctly
    • Fixed: Playlist cache correctly on first run (thanks, @chrsblck!)

    NOTE: Initially a botched release (no dependencies), but the current attached download is fixed.

  • untagged-d357df1dd876f49ae7409 years ago, 1.2 MBDownload
  • untagged-047e50cd91ceff37048b9 years ago, 1.2 MBDownload
  • 0.13.39 years ago, 1.2 MBDownload

    The point three update makes Spotifious a lot nicer to use!

    Speedy-quick

    A new backend for handling hotkeys means shortcuts run instantly. I did this because it bothered me.

    Playlist search

    Search your playlists from within Spotifious! You can update your playlist cache in the settings menu. You can also play playlists directly from the search menu with ctrl 😁.

    More details:

    • Added: Alfred-native hotkey activation means a huge speedboost to hotkeys
    • Added: Cache your playlists to add them to search
    • Fixed: API search now uses Authentication all the time
    • Changed: Do not source control vendor/
    • Changed: Use a newer version of JWilsson's API.
    • Removed: Opt-out does not work with the Spotify API anymore, so it's removed
  • untagged-5a073d2024cacb9fdd3a9 years ago, 1.2 MBDownload
  • untagged-01605e31ce682aaeb0649 years ago, 1.2 MBDownload
  • 0.13.2.19 years ago, 1.0 MBDownload

    fixes an installation bug

  • 0.13.29 years ago, 1.0 MBDownload

    This new build fixes several issues with Alfred 3 compatibility, improves performances in several cases, and modernizes a couple parts of the architecture.

  • untagged-cc61581aa4bf11ee32019 years ago, 1.0 MBDownload
  • untagged-9ce37879c78052fd70619 years ago, 1.0 MBDownload
  • untagged-5e19b1d94781ceedca769 years ago, 1.0 MBDownload