parole
- 5 Devlogs
- 11 Total hours
Parole is a TUI tool to display lyrics from the song you are currently playing !
Parole is a TUI tool to display lyrics from the song you are currently playing !
This took way much more time than I thought, but everything is set up !
I made a readme, a contributing guide, and even issue templates !
Also I made a release workflow, and I’m soooo tired of the fact that Github Actions has no way of testing them, because it keeeps failing for whatever reason aaaaaah
Well now it’s published so I just need to test !
So I basically rewrote the logic to get song info. It’s not using playerctl anymore, which was not made to work like that and was not multi platform.
Now, I have a little thingy that can provide two “providers”, one for Linux using mpris (dbus-next) and one for Windows using winsdk.
The implementation on Linux was pretty easy, but omg why do people still use Windows ?
Basically, the Windows API do not return the current position on the song, but a position and a time since it was last updated. So in 90% of the players, if you pause, all the timing will get wrong.
And to complement all of this, the experience of using windows is sooo bad, like, wdym the middle mouse button stops working randomly ?
Anyway I think i just need to write docs and I’m ready to ship !
The program can show multiple lines of lyrics, and there is an argument to choose the number of them !
I also improved the lyrics parsing method, and forced the app to use the ANSI colors from the terminal.
I think now I will change the metadata fetching to MPRIS via Dbus instead of playerctl, and will do that in a separate file for better organization when I will port to windows
I knew it would be a small project, but this is reaaaally fast !
In this small update, I added a way to actually parse the lyrics, and show them in the TUI ! For now, there is just one line of lyric, but I will add options to add more lines.
I just need to add customization options, fix some errors, maybe find a way to make this run on windows !
Parole is a TUI tool made for your rice ! It will show the lyrics of the song you are currently listening, using Playerctl :)
I use Subprocess to get the playerctl metadata, then I use Textual to show everything.
For now, it can just get the lyrics and format them in a dict. Not very beautiful for now…