Code Monkey home page Code Monkey logo

musicscroll's Introduction

MusicScroll

Basic program for basic needs

I don't like having to fire up a browser to get the lyrics of the songs I am currently hearing. I got basic needs, I download songs with good metadata and use SMPlayer/VLC to open the playlists. It would be nice if somehow I could get a basic windows with the lyrics of the song.

MusicScroll does this. When you run the command music-scroll, a window is opened with the lyrics of the song your are playing on SMPlayer/VLC and each change of song will retrieve new lyrics hopefully without your intervention. If it could not retrieve the song because it was lacking metadata, you could supply the missing info to get it. It will cache the results so you don't have to intervene manually next time. Ideally it ought be not invasive so you can read only if you want.

This works by getting the MPRIS info on your song, specifically the title and artists fields. After some clean up it will retrieve the lyrics from a lyrics website, clean the HTML a little and put it as text on a GTK window. It will cache the results on a SQLite DB for next time.

This was done as an excuse to learn more of gi-gtk, glade and SQLite. But I am happy with the result so I am sharing.

I want to thanks to the haskell-gi and haskell dbus authors. I didn't know much about UI programming or dbus, but the documentation, types and code samples helped me a lot on understanding how they ought to be organized. If I see you guys on a conference I will buy you a beer :-) . The d-feet program was really helpful for see how the data was layout on DBus.

I accept donations <3, the COVID-19 certainly affected me economically!.

musicscroll's People

Contributors

rubenastudillo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.