Author Topic: Control Spotify  (Read 57576 times)

smokejuice

  • Guest
Re: Control Spotify
« Reply #30 on: December 18, 2019, 04:13:25 AM »
All I get is this:

6:58:46.611 [Spotify] Unsuccessfully authenticated with Spotify (Exchange token not returned by server.).
6:58:46.611 [Spotify] Unsuccessfully authenticated with Spotify (Exchange token not returned by server.).
6:58:23.695 Plugin 'Spotify Plugin - litpixi.com/va-spotify/' initialized.
6:58:23.691 [Spotify] This plugin needs authorization to your Spotify account. A Web page should have opened in your browser and you have to authorize it.

I gave it permission, so that's not the problem. But I can't get it to authenticate with my Spotify. Do you have any idea what could be the problem? Please help!
Thank you!

(yeah I know this is a bit of a necro, but I'd love to get your plugin working :D)

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #31 on: January 10, 2020, 08:58:14 PM »
For all, if you post something in this topic, please, send me an email at info@litpixi.com to notify me, because I rarely receive any notification when someone is posting something here.

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #32 on: January 10, 2020, 09:12:07 PM »
Thank you for the playlist working.
Question though, is there a way to active the playlist in Shuffle mode?
I got it working by copying the toggle shuffle command after the initial command, but is that the cleanest way of doing this?

In Spotify, when I load a playlist and enable the shuffle and after I load a new playlist, I see that the shuffle is still enabled. So, I think the way you do is the good way, but you do miss something. You may want to get the value of the variable "Spotify_IsShuffleEnabled" to know if you have to toggle the shuffle again because it might still be enabled.

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #33 on: January 10, 2020, 09:14:18 PM »
Is there a way to queue up a song, or remove the next song in the queue, or do something to change play lists, but also return to a song in a previous playlist?

Am trying to figure out a way to use the playlist change feature to change playlists for Elite: Dangerous, and be context specific, so exploration music or combat music, but also return to a previous song when something else ends.

A lot of people like to put the Mass Effect music in the galaxy map, but is just the returning to the previous playlist is the bit that I cannot figure out right now

I will have to dig if this is possible. Stay tuned.

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #34 on: January 10, 2020, 09:17:26 PM »
All I get is this:

6:58:46.611 [Spotify] Unsuccessfully authenticated with Spotify (Exchange token not returned by server.).
6:58:46.611 [Spotify] Unsuccessfully authenticated with Spotify (Exchange token not returned by server.).
6:58:23.695 Plugin 'Spotify Plugin - litpixi.com/va-spotify/' initialized.
6:58:23.691 [Spotify] This plugin needs authorization to your Spotify account. A Web page should have opened in your browser and you have to authorize it.

I gave it permission, so that's not the problem. But I can't get it to authenticate with my Spotify. Do you have any idea what could be the problem? Please help!
Thank you!

(yeah I know this is a bit of a necro, but I'd love to get your plugin working :D)

You should try to disconnect from the Spotify website and clear the cache and cookies of your browser, and retry the authentification process.

CptJohnCle

  • Newbie
  • *
  • Posts: 5
Re: Control Spotify
« Reply #35 on: January 19, 2021, 09:45:02 AM »
so I am resurrecting this thread.

I downloaded the plugin put the file in c:\program files X86\voiceattack\Apps

imported the profile.

The only thing that works is the launch spotify. I get no authentication for spotify

There was an error "PLUGIN NOT LOADED"

The problem was that under settings of Voice Attack I had a box "enable plugins" that wasnt checked. So plugins will not load (obviously)

also if you look at the commands all those commands are prefaced with the word "Music" so you must say "Music Next" to skip a track etc.

Works great today's date is 1/19/2021

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #36 on: February 12, 2021, 03:36:01 PM »
Great news everyone!

I re-wrote the Spotify integration part of the plugin and now, the authorization web page should only open once or very rarely.

So, go to http://www.litpixi.com/va-spotify/ to download the new version.

LSDMT

  • Newbie
  • *
  • Posts: 1
Re: Control Spotify
« Reply #37 on: February 12, 2021, 10:04:31 PM »
Great news everyone!

I re-wrote the Spotify integration part of the plugin and now, the authorization web page should only open once or very rarely.

So, go to http://www.litpixi.com/va-spotify/ to download the new version.

THANK YOU, OMICRON!!!

(wayne & garth:  we're not worthy!!)

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #38 on: April 08, 2022, 06:55:45 AM »
New version 3.0.1.3 available.

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #39 on: April 17, 2022, 01:18:14 PM »

SmallShoes

  • Newbie
  • *
  • Posts: 1
Re: Control Spotify
« Reply #40 on: February 04, 2023, 08:24:41 PM »
Why am I getting this error? Do I have to have a Spotify Premium account to get this to work? If so, that's pretty disappointing.

"7:19:36.115 [Spotify] Error while executing an action to Spotify (One or more errors occurred.Player command failed: Premium required)."

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #41 on: February 04, 2023, 09:29:04 PM »
Why am I getting this error? Do I have to have a Spotify Premium account to get this to work? If so, that's pretty disappointing.

"7:19:36.115 [Spotify] Error while executing an action to Spotify (One or more errors occurred.Player command failed: Premium required)."

Yep ! Spotify limits their own API if you are not premium.

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #42 on: July 21, 2023, 04:12:29 PM »
Has anyone gotten this to work ?

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #43 on: July 21, 2023, 08:21:51 PM »
Has anyone gotten this to work ?

Are you talking about how to download it ? If so, my website is currently down, but I moved everything into GitHub.

Download link : https://github.com/OmiCron07/VoiceAttack-Spotify-Plugin/releases

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #44 on: July 21, 2023, 09:51:51 PM »
I downloaded it and put the "Spotify" folder into the APPS folder, but the plugin is not loading and does not appear on the plugin manager list

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #45 on: July 21, 2023, 09:55:59 PM »
From memory, you have to enable plugins in the VoiceAttack settings.

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #46 on: July 21, 2023, 10:23:28 PM »
They are enabled. As I said, it does not appear on the plugin list at all. I've plenty of other plugins working.

Patrick Lavoie

  • Newbie
  • *
  • Posts: 23
Re: Control Spotify
« Reply #47 on: July 21, 2023, 10:46:09 PM »
No logs in the main screen ?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2833
Re: Control Spotify
« Reply #48 on: July 21, 2023, 10:50:47 PM »
Make sure the file is not blocked by Windows:
https://www.thewindowsclub.com/fix-windows-blocked-access-file

Just felt compelled to throw that out there as it’s happened to me in other situations.

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #49 on: July 21, 2023, 10:52:42 PM »
Just "Profile changed to Spotify"

I renamed it from "Default" to "Spotify"

I did not see a blocked file pop.  The files in the Spotify folder are there and under the APPS folder.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2833
Re: Control Spotify
« Reply #50 on: July 21, 2023, 10:54:31 PM »
I know this sounds weird, but try moving your other plugins out of the plugin folder temporarily and see if it shows up.

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #51 on: July 21, 2023, 10:57:20 PM »
No logs in the main screen ?

Ok I see you updated the file in "released" 2 hours ago.  I downloaded that one and it's working.  THanks!!

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #52 on: July 21, 2023, 11:03:38 PM »
I remember I tried this last year or 2 years ago.  The command "Launch Spotify" has TTS say "Expression Error."  Perhaps VA syntax has changed since this was created?

Code: [Select]
Say, 'Launching Spotify'
Run application 'spotify:'
Pause 3 seconds
Execute external plugin, 'Spotify Plugin - github.com/OmiCron07/VoiceAttack-Spotify-Plugin' using context 'UpdateState' and wait for return
Say, '{EXP: IIF({BOOL:Spotify_IsRunning}, 'Successfully launched Spotify', 'Spotify seems to not be running')}'  (and wait until it completes)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4792
  • RTFM
Re: Control Spotify
« Reply #53 on: July 22, 2023, 12:38:28 AM »
No...the syntax has not changed

That "Expression Error" would be because the Boolean variable "Spotify_IsRunning" has not been set.


Do you have the Spotify application install on your machine, or are you running Spotify in your web browser?

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #54 on: July 22, 2023, 01:19:28 AM »
The app is installed. The command loads it fine.

Seems that variable is not getting set for some reason.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4792
  • RTFM
Re: Control Spotify
« Reply #55 on: July 22, 2023, 01:35:14 AM »
Are the other commands in the profile working?

Wolfang42

  • Newbie
  • *
  • Posts: 13
Re: Control Spotify
« Reply #56 on: July 22, 2023, 01:44:42 AM »
Yes once I start something manually.  Seems the variable is now being set. I had to load the app manually and now it works ok.  Thank you all.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2833
Re: Control Spotify
« Reply #57 on: August 30, 2023, 10:20:26 PM »
Did you enable plugin support and restart VA?

krztoff

  • Newbie
  • *
  • Posts: 1
Re: Control Spotify
« Reply #58 on: August 30, 2023, 10:30:43 PM »
Did you enable plugin support and restart VA?

Thanks.  The problem was an incomplete install.  I redownloaded and reextracted and now the plugin loads - however now I cannot get it to recognize any commands other than "launch spotify". 

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4792
  • RTFM