Jump to content
citelao

Spotifious: a natural Spotify controller for Alfred

Recommended Posts

Thanks for the workflow/controller!

Please add queueing :)!

 

You're welcome!

 

The first step is certainly there. I have the power to create playlists in Spotifious now. So someday.

Share this post


Link to post

Has an error every time I try it...

 

[2016-06-04 18:48:08][sTDERR: input.scriptfilter] Warning: mkdir(): No such file or directory in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 56

Warning: fopen(/Users/paularmitage/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.citelao.spotifious/2016-06-04 01-06-08 Spotifious.log): failed to open stream: No such file or directory in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 237

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 238

Warning: fclose() expects parameter 1 to be resource, boolean given in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 239

 

Super idea though!

Share this post


Link to post

Has an error every time I try it...

 

[2016-06-04 18:48:08][sTDERR: input.scriptfilter] Warning: mkdir(): No such file or directory in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 56

Warning: fopen(/Users/paularmitage/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.citelao.spotifious/2016-06-04 01-06-08 Spotifious.log): failed to open stream: No such file or directory in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 237

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 238

Warning: fclose() expects parameter 1 to be resource, boolean given in /Users/paularmitage/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.498502BD-22F9-4AC4-8116-8CF758F79A9F/src/citelao/OhAlfred/OhAlfred.php on line 239

 

Super idea though!

 

I will fix this bug as soon as I can, but for now you can fix it on your own by following the instructions on this bug.

 

And thanks :)

Edited by citelao

Share this post


Link to post

I will fix this bug as soon as I can, but for now you can fix it on your own by following the instructions on this bug.

 

And thanks :)

 

 

Thanks, worked fine after following the info on the link - cheers!

Share this post


Link to post

Hi, 

 

Thx a lot for developing spotifious.

 

I just installed it in el capitan on alfred 3.0.2 with powerpack activated and spotify 1.0.33.106.g60b5d1f0

 

I can use the play and pause part of the workflow, but whenever I try to find something I get the following error.

# Error Log # 
## Error Info ## 
fetch() failed; error code: 400
Line 29, /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/OhAlfred/HTTP/Fetcher.php

## Symbols ## 
Array
(
    [message] => fetch() failed; error code: 400
    [vars] => 
    [0] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/OhAlfred/HTTP/JsonFetcher.php
            [line] => 15
            [function] => run
            [class] => OhAlfred\HTTP\Fetcher
            [type] => ->
            [args] => Array
                (
                )

        )

    [1] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/Spotifious/Menus/Search.php
            [line] => 29
            [function] => run
            [class] => OhAlfred\HTTP\JsonFetcher
            [type] => ->
            [args] => Array
                (
                )

        )

    [2] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/Spotifious/Spotifious.php
            [line] => 129
            [function] => __construct
            [class] => Spotifious\Menus\Search
            [type] => ->
            [args] => Array
                (
                    [0] => Dorje
                )

        )

    [3] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/main.php
            [line] => 23
            [function] => run
            [class] => Spotifious\Spotifious
            [type] => ->
            [args] => Array
                (
                    [0] => Dorje
                )

        )

)



 

Any suggestions what the problem might be?

Share this post


Link to post

Hi, 

 

Thx a lot for developing spotifious.

 

I just installed it in el capitan on alfred 3.0.2 with powerpack activated and spotify 1.0.33.106.g60b5d1f0

 

I can use the play and pause part of the workflow, but whenever I try to find something I get the following error.

# Error Log # 
## Error Info ## 
fetch() failed; error code: 400
Line 29, /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/OhAlfred/HTTP/Fetcher.php

## Symbols ## 
Array
(
    [message] => fetch() failed; error code: 400
    [vars] => 
    [0] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/OhAlfred/HTTP/JsonFetcher.php
            [line] => 15
            [function] => run
            [class] => OhAlfred\HTTP\Fetcher
            [type] => ->
            [args] => Array
                (
                )

        )

    [1] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/Spotifious/Menus/Search.php
            [line] => 29
            [function] => run
            [class] => OhAlfred\HTTP\JsonFetcher
            [type] => ->
            [args] => Array
                (
                )

        )

    [2] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/src/citelao/Spotifious/Spotifious.php
            [line] => 129
            [function] => __construct
            [class] => Spotifious\Menus\Search
            [type] => ->
            [args] => Array
                (
                    [0] => Dorje
                )

        )

    [3] => Array
        (
            [file] => /Volumes/Macintosh HD/Users/bunker/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F07C15B8-5DAB-4518-BD4D-22D451DEBBB0/main.php
            [line] => 23
            [function] => run
            [class] => Spotifious\Spotifious
            [type] => ->
            [args] => Array
                (
                    [0] => Dorje
                )

        )

)



 

Any suggestions what the problem might be?

 

That's weird—error 400 is "bad request," but you're just searching for "Dorje."

 

Are you still getting the error?

Share this post


Link to post

Hi Citelao,

 

First of all, love this workflow. Very nice. Unfortunately it broke down all of the sudden. Check the search result in the screenshot I attached. I can't read a line of code so I'm not able to fix this problem myself. Please help me out to enjoy your workflow again. Thanks!

 

Yours, Sam. 

Schermafbeelding 2017-05-31 om 10.09.05.png

Share this post


Link to post
8 hours ago, samvandersteen said:

Hi Citelao,

 

First of all, love this workflow. Very nice. Unfortunately it broke down all of the sudden. Check the search result in the screenshot I attached. I can't read a line of code so I'm not able to fix this problem myself. Please help me out to enjoy your workflow again. Thanks!

 

Yours, Sam. 

Schermafbeelding 2017-05-31 om 10.09.05.png

 

 

Thanks for the kind words, Sam!

 

Assuming you're running the latest version, which is v0.13.2.1 as of 31 May 2017, try logging in again:

 

  1. Type `s` from the main screen to open the settings menu
  2. Select "Login again to my Spotify application" and follow the remaining instructions in the web browser that opens. 

 

If that doesn't work, please send me the log file that appears when the error hits (the third option on the error page will open the folder that stores these logs). Good luck!

Edited by citelao

Share this post


Link to post

@citelao I was having the same issue as @samvandersteen. It resulted from an authentication requirement change for Spotify web API requests that took effect on 29th May 2017. I've written a quick fix and submitted a pull request on GitHub here. Not the most elegant solution I'm sure but it works for me and you'd be the best person to do any tidying up required.

Share this post


Link to post
11 hours ago, samvandersteen said:

Hi Citelao,

 

Thanks for your fast response. I have tried to install the new workflow, but a similar problem keeps occurring unfortunately. I have uploaded the log beneath.

 

 

Schermafbeelding 2017-06-06 om 09.20.08.png

Schermafbeelding 2017-06-06 om 09.20.30.png

Fixed in v0.13.3.1, which I'm posting to Packal and associated now. Thanks @chrsblck!

Share this post


Link to post

Hi,

 

Your idea looks fantastic!

 

However, after following all your steps, the music cannot play. Details go like this: I choose the song, and press "enter", but it just gives me no response and also the Alfred window disappears. I have not installed the Spotify Application, but I do not think it matters?

 

Wish your reply,

 

Frank

Share this post


Link to post
16 minutes ago, lunatic.frank said:

Hi,

 

Your idea looks fantastic!

 

However, after following all your steps, the music cannot play. Details go like this: I choose the song, and press "enter", but it just gives me no response and also the Alfred window disappears. I have not installed the Spotify Application, but I do not think it matters?

 

Wish your reply,

 

Frank

 

It controls the Spotify app, just like the iTunes mini player, so you'll need to install the app for anything to work :D.

 

There's a beta API for controlling players remotely, if you have premium, which I can look into, but there are a lot of pain points I'd have to fix before that would work. So just Spotify app for now :P

Share this post


Link to post
19 minutes ago, citelao said:

 

It controls the Spotify app, just like the iTunes mini player, so you'll need to install the app for anything to work :D.

 

There's a beta API for controlling players remotely, if you have premium, which I can look into, but there are a lot of pain points I'd have to fix before that would work. So just Spotify app for now :P

Erm, I originally thought it was remote one. Now it works perfect! Thanks a lot!

Share this post


Link to post

I have no idea how hard these things will be but here are the two things that would make this AWEOMSE!
 

  • Save song to library (concern: either include notif or make sure that it's not just a binary on/off command to prevent unsaving songs you forgot you saved)
  • Add to playlist (a default playlist would minimally suffice, select playlist as second command would be EPIC)
  • Add to queue

Share this post


Link to post

Hi Citelao,

 

Little UX feedback thingy. The hoover color is the same as the icon. Sometimes I just want to select a number, instead it opens the album or artist page. Maybe the hoover a shade darker or lighter so the icon has enough contrast?

 

Thanks buddy!

 

 

Screen Shot 2018-02-27 at 9.15.25 AM.png

Share this post


Link to post
On 9/7/2017 at 3:51 PM, dshen said:

I have Alfred 2. It's not compatible?

 

I believe https://github.com/citelao/Spotify-for-Alfred/releases/tag/v0.13 was the last Alfred 2-compatible release; I do not know if it still works. It is very hard to keep a working Alfred 2 version :(.

 

On 1/18/2018 at 6:30 AM, BrianBarr said:

I have no idea how hard these things will be but here are the two things that would make this AWEOMSE!
 

  • Save song to library (concern: either include notif or make sure that it's not just a binary on/off command to prevent unsaving songs you forgot you saved)
  • Add to playlist (a default playlist would minimally suffice, select playlist as second command would be EPIC)
  • Add to queue

 

I'd love to do those things! Take a look at https://github.com/citelao/Spotify-for-Alfred/issues and add some feature requests if you'd like!

 

On 2/27/2018 at 12:17 AM, samvandersteen said:

Hi Citelao,

 

Little UX feedback thingy. The hoover color is the same as the icon. Sometimes I just want to select a number, instead it opens the album or artist page. Maybe the hoover a shade darker or lighter so the icon has enough contrast?

 

Thanks buddy!

 

 

Screen Shot 2018-02-27 at 9.15.25 AM.png

 

Ugh, I know! Alfred changed their default theme on me, I think... I've worked around it by using the MacOS theme, but you're right; I should try to change them. See https://github.com/citelao/Spotify-for-Alfred/issues/118.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...