Getting data from Spotify app (Windows/Mac) -


how data such music playing, tilte, artist app (windows/mac). there option using web api tested musixmatch app , works when offline connecting app possible somehow.

spotify exposing api can use query state of application

for example if on apple system can use applescript api:

-- creates notification information playing track  -- main flow set currentlyplayingtrack getcurrentlyplayingtrack() displaytrackname(currentlyplayingtrack)  -- method playing track on getcurrentlyplayingtrack()   tell application "spotify"     set currentartist artist of current track string     set currenttrack name of current track string      return currentartist & " - " & currenttrack   end tell end getcurrentlyplayingtrack  -- method create notification on displaytrackname(trackname)   display notification "currently playing " & trackname    -- delay set added make sure notification shown long enough before script ends   delay 1  end displaytrackname 

this example comes official documentation can find here.

for windows instead there no clear way it. once there libspotify sdk no longer supported.

it seems library going substitute new api windows/mac/whatever there beta versions phone os , cannot find windows.

so seems option use old version of library , hope still working properly.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -