Jump to content

Spotifious: a natural Spotify controller for Alfred


Recommended Posts

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!

Link to comment

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
Link to comment
  • 2 weeks later...
  • 4 weeks later...

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?

Link to comment

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?

Link to comment
  • 2 weeks later...
  • 1 month later...
  • 8 months later...

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

Link to comment
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
Link to comment
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!

Link to comment

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

Link to comment
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

Link to comment
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!

Link to comment
  • 4 weeks later...
  • 2 weeks later...

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
Link to comment
  • 1 month later...
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.

Link to comment
  • 4 months later...

Doesn't seem to work with Alfred 4.

 

I'm getting a segmentation fault on the main.php script when I start Spotifious in Alfred 4.

 

[10:49:11.232] ERROR: Spotifious[Script Filter] Code 139: /bin/bash: line 3: 50585 Segmentation fault: 11  php -f main.php -- ""

Press the hotkey

See "Getting Spotifious data..."

After a few seconds, goes back to the regular Alfred prompt

 

(Tried reinstalling)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...