lyricfier icon indicating copy to clipboard operation
lyricfier copied to clipboard

Using local API to retrieve current track

Open jakub-tucek opened this issue 6 years ago • 9 comments

Hey,

I made first version of changing API for retrieving current track to use local system api for spotify player as was suggested here: https://github.com/emilioastarita/lyricfier/issues/103 by @patrolez.

I only tested it on Linux but clients are for the most part taken from this project:

https://github.com/panz3r/hyper-spotify/tree/master/src/lib

Please take a look and let me know what you think.

jakub-tucek avatar Oct 01 '18 20:10 jakub-tucek

I am not a TypeScript developer, but I can only say well done! :+1:

It works under Linux for me also!

I wonder if @emilioastarita is still interested to maintain this repo :thinking:

patrolez avatar Oct 03 '18 09:10 patrolez

I've tried this in macOS Mojave and it's not working for me 😢

Agusum avatar Oct 04 '18 22:10 Agusum

Thank for testing! I will take a look and see what I can do about it

jakub-tucek avatar Oct 07 '18 20:10 jakub-tucek

Not working for me on Windows 10. In the cmd prompt, when clicking Try Again I get this [10628:1012/232907.571:INFO:CONSOLE(6)] "Uncaught TypeError: Spotilocal is not a constructor", source: C:\Users\myles\lyricfier\render\spotify\SpotifyWindows.js (6) I have spotify version 1.0.91.183.g259b84fa, but I also use Spicetify to customize my Spotify a bit. Could that be why this isn't working? Thanks!

mendel3 avatar Oct 12 '18 20:10 mendel3

I fixed issue on macOs Mohave so linux+macOs should work now.

Unfortunately, I had to remove support for windows as i have no idea how to do it locally. As MPRIS does not exists on windows and it seems SystemMediaTransportControls is not alternative that would allow accessing currently played track. I vote for dropping windows support until we find working alternative and in the meantime have working app for other platforms. What shall we do @emilioastarita?

jakub-tucek avatar Nov 23 '18 15:11 jakub-tucek

It works now! Thank you so much!

Is there a way you could put together a release so that it's easier to launch the app (not requiring the command line)?

Agusum avatar Nov 24 '18 16:11 Agusum

Here is release in forked repo: https://github.com/jakub-tucek/lyricfier/releases/tag/v0.3.0

jakub-tucek avatar Nov 24 '18 17:11 jakub-tucek

Is windows support a priority, because all other lyric apps for Spotify are abandoned

mendel3 avatar Nov 25 '18 06:11 mendel3

(electron:15339): Pango-ERROR **: 22:07:44.628: Harfbuzz version too old (1.4.2)

I just done quick googling and find out that it's probably common electron problem, but I have no idea how to fix it.

wappyn avatar Apr 02 '21 20:04 wappyn