aviwad / lyricfever Goto Github PK
View Code? Open in Web Editor NEWSpotify & Apple Music Lyrics app for macOS menubar (spiritual successor to LyricsX)
Home Page: https://lyricfever.com
License: MIT License
Spotify & Apple Music Lyrics app for macOS menubar (spiritual successor to LyricsX)
Home Page: https://lyricfever.com
License: MIT License
if denied post a message and disable the timer (waste of energy bc there's no playback position to use)
Prevent Spotify and Apple Music from opening up on first use. Detect permissions in onboarding before continuing. Remove crossfades info page (not necessary.)
It took lot of space from the menu bar, just to displaying that"Nothing Playing on Apple Music"
When the same song plays again, we don't receive a song change notification. LyricUpdater stays in the loop. Drift Fix is never called.
Check for network calls made on Spotify on iOS and enable translated lyrics. Alternatively, use third party API to translate the lyrics. Enable option to display these translated lyrics instead of original (where translation required).
This is really bad. I wonder why the onboarding message comes up. Further debugging needed.
Sometimes I'll click "Don't show lyrics" and then the next time I relaunch the app I'll wonder why lyrics aren't loading. Maybe other users feel the same way.
Awesome work! I've only been using it for 30 minutes and I already love your app. One feature I would love to have would be displaying the lyrics as "subtitles", similar to how LyricsX does. That is, "floating", windowless text that can be dragged around the screen and displays on top of all other apps.
More user friendly option to embed a WebView (as I have done in https://github.com/aviwad/Friend-Activity-for-Spotify) instead of requesting the user to copy a cookie.
easy to manage and update.
Perhaps using the AppleScript Spotify data I can detect when the current device is an Amazon Echo and automatically insert a 3 second delay?
I found a new issue in here:
So, if the lyrics it's too long, it will not appear.
I think it will be hard to do the code where the lyrics isn't timestamp per word :D
Anyway, on the tiktok Music it can appear like this, the lyrics will be slowly moving to left (I didn't use if because the sound quality isn't great for me)
Currently only using to access Spotify's playback position. Can easily do the same using AppleScript. Need to decide whether to interface with AppleScript directly or use the scripting bridge.
unpause starts the lyric updater, setting the timeline for the next lyric update. it should also update the current lyric immediately rn
Need to start translating the menu bar strings as well as the onboarding window strings. In all the languages App Store and LyricsX (the ancestor) supports.
attempt to switch to apple music / open the settings window while Lyric Fever is set to Spotify mode + spotify is not open. results in spinning beach ball of death and have to manually force quit in activity monitor
Karaoke letters at center of the screen like LyricsX, like this screenshot:
https://github.com/ddddxxx/LyricsX/blob/master/docs/img/preview_1.jpg
The Spotify desktop app stores its preferences (including an "autologin blob") in ~/Library/Application Support/Spotify/prefs
Need to figure out how to decode this and use it as compared to the spDc -> auth token process I'm using right now... maybe some Wireshark sniffing?
No spotify distributed notification available if song was already playing before the app is opened. Using the LyricsX MusicPlayer API is garbage because no data for currentTrack is returned. A solution could be to use AppleScript to read the Spotify current track on init.
Hi @aviwad ,
thanks for the awesome app, I noticed that the lyrics don't show:
Is there any way I can help with it?
I restarted my computer earlier today, and on login, LyricFever mysteriously asked me to log in to Spotify, although I already had it setup with the sp_dc
cookie (and "mysteriously" because it's never done that for months that I've had it set up).
Presented with both webview and advanced options for authentication, I went with the cookie option and all was fine.
Anyone else have this experience? Worth noting that I'm behind a VPN, but I almost always am, and it's never been an issue.
And what do you think? Maybe their bot detection implementation is now more robust?
Interestingly, after resetting my password, turns out LyricFever still works, without needing to re-authenticate.
But all my Spotify clients were logged out, on all devices ๐
request from a lovely email. don't know if it's possible have never tried the amazon music macOS application.
Pause the Lyric updater when menubar is hidden.
Should reduce CPU usage when invisible.
https://github.com/dropcreations/Manzana-Apple-Music-Lyrics can maybe use the API call used here. Would be better for a few songs (better syncing compared to spotify)
Does or will this app implement custom lyric upload? In many case that it's not able to search the lyric and we want to upload my local .lrc
files just like what https://github.com/ddddxxx/LyricsKit does.
Instead of a 1 second timer running during song (with lyric) playback, instead update the index on the next lyric's timestamp. the only problem is i can't receive any notification for the user scrubbing the playback position during playback, and so a timer is necessary. perhaps a combination of using the lyric's timestamp to maintain a timeline of updates, alongside a 5 second timer to reset the timeline if the user scrubs playback
Have not debugged but Spotify might be returning incorrect playback timing (maybe a 0.0 repeatedly?) When casting to Google Home.
Even with crossfades set to off, if Playback -> Autoplay is on, and songs autoplay (without user skipping or pausing) a slight delay is introduced. spotify is sending slightly incorrect playback position. This only happens sometimes. Cannot be replicated easily.
integrate apple music applescript + usernotifications -> convert apple music id to ISRC -> use spotify api to convert to spotify ID
The cookie expires a year after generation. Right now I don't account for this. User may be blind sided by it not working. I don't check for the cookie working or not. All access token generation errors are currently lumped together (network error, incorrect cookie, expired cookie, etc)
the main heroku instance run by the spotify-lyric-api guy is basically shut. need to host my own spotify-lyric-api server asap.
Does this require Spotify Premium? Or is there a bug in Mac OS 15 beta that doesn't show lyrics?
Please take a look, thank you
rapidly skipping through spotify leads to multiple async Tasks running in parallel, fetching lyrics for songs that were skipped in milliseconds, and then the the lyrics fetcher running the lyric updater for the song. this leads to multiple timers running in parallel, each recursively calling itself again. even calling stop does nothing. this leads to redundant timers running a few milliseconds away from each other for the same update, as well as timers spamming the CPU when the song is paused / spotify is closed
Lyric Fever on Spotify: 0.1 to 1% CPU usage
Lyric Fever on Apple Music: 0.1 to 6% CPU usage
The lyric updater is duplicating in xcode logs. don't know why.
truncation should be enabled for song names too, or the menubarextra disappears suddenly on low space
like Apple Music. A work in progress
Missing features:
can't keep bombarding the spotify-lyrics-api guy's heroko server with requests on each new song load. need to cache my LyricLine struct array to coredata. need to learn core data
Not needed. Have fixed the Spotify lyric drift. Let the user keep the crossfades on if they want to ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.