bjarneo / Pytify

A CLI application for controlling Spotify
MIT License
741 stars 40 forks source link

Erroring out after entering song number #11

Closed nathantym closed 9 years ago

nathantym commented 9 years ago
Type song number and press <enter> to play. Press <enter> for new search.
> 2
22:32: syntax error: A identifier can’t go after this identifier. (-2740)

After doing a quick google, it looks like it has to do with osascript.

bjarneo commented 9 years ago

Did you start spotify before running this cli remote?

nathantym commented 9 years ago

I thought I did, but I guess the iTunes version of Spotify is different from the desktop application, so that solves that problem. I'm interested in writing something that checks if there is a process running for Spotify and if there isn't it opens it, which will fix the errors surrounding Spotify not being open.

nathantym commented 9 years ago

I added a function to the DarwinSpotipy class to check if Spotify is running and if it's not, it opens it. I need to test this and add in the functionality for it to possibly occur upon start of the cli script. Also it's probably a good idea to check if it's installed before it tries to open Spotify for extra error handling.

bjarneo commented 9 years ago

Thanks for your contribution :)