Code Monkey home page Code Monkey logo

spotifylyrics's Introduction

Spotify Lyrics

Build Current Release License GitHub All Releases

Fetches and displays lyrics to currently playing song in the Spotify desktop client.

The lyrics are fetched from these sites:

  • rentanadviser.com (synchronized)
  • megalobiz.com (synchronized)
  • lyricsify.com (synchronized)
  • rclyricsband.com (synchronized)
  • musixmatch.com
  • songmeanings.com
  • songlyrics.com
  • genius.com
  • versuri.ro
  • AZLyrics.com

How to

You can grab the latest release in the release section.

Windows

Download the .exe file.

Just double click and start playing songs in spotify.

It is possible that a warning of windows smartscreen appears. It's because the exe is unsigned (see #22). You can allow the program to open by clicking on "More info" and "Run anyway".

If you get an error about api-ms-win-crt-runtime-l1-1-0.dll missing, you need this:

https://www.microsoft.com/en-us/download/details.aspx?id=48145

If the window opens and closes immidiatly, feel free to help fxing the problem in #21.

Linux

Download the file without any file ending.

Make it executable via terminal with chmod +x SpotifyLyrics or via you file manager.

Now you can double click the executable and start playing songs in spotify.

MacOS

Download the .app.zip file.

Extract the zip so you got a SpotifyLyrics.app directory.

Make a right click on the SpotifyLyrics.app. Click on open and and you can bypass the warning. The program should open and you can play your songs in spotify.

Running from source

If you want to run from source you need:

  • Python 3.6 (probably any version greater than Python 3.6)
  • pip install -r requirements.txt

Ubuntu/Debian example:

sudo apt install python3-pip git
git clone https://github.com/SimonIT/spotifylyrics.git
cd spotifylyrics/
sudo pip3 install -r requirements.txt
./SpotifyLyrics.pyw

How to load lyrics from hard drive

You can store lyrics on you hard drive which can automatically loaded.

You have to put them on windows in C:\Users\<User>\AppData\Roaming\SpotifyLyrics\lyrics and on the other OS's in /home/<User>/.SpotifyLyrics/lyrics. Replace <User> with your username.

There you can put .lrc files with synced text (You can make them for example on lrcgenerator.com or www.megalobiz.com) or simple .txt files with non-synced text.

Important: The file names must include the artist and the name of the song

Theming

You can customize the design of SpotifyLyrics. To do so create a file called theme.ini inside C:\Users\<User>\AppData\Roaming\SpotifyLyrics or /home/<User>/.SpotifyLyrics. Then put some style information in it. You can find an example here.

Screenshot

example-img

spotifylyrics's People

Contributors

andriyor avatar archagy avatar arecsu avatar dependabot-preview[bot] avatar fr31 avatar hf0 avatar jackdahms avatar keryil avatar kupiakos avatar lucasjones avatar mexx62 avatar mugbug avatar ozgurg avatar rishoj avatar simonit avatar snyk-bot avatar spyrosroum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spotifylyrics's Issues

Mpv support?

I think it is more good than VLC, but still it is not that urgent. Hope you will add when you do have free time.

False positive?

When i try to download the exe the Smart Screen (Windows 10) say to me that this is a virus.

Can you resolve this?

Spotifylyrics.app opens and closes immediately on macOS

As mentioned in my latest release 1.5, the provided app for Mac OS seem not to work. My friend
@janniswiehart tested it and it seem to open and than it closes immediately. By searching around on the internet, I found issue pyinstaller/pyinstaller#3820, which seem to be the same problem. Another problem is, that I don't own a mac, so I can't try the possible solutions.
I would be very glad if someone tries the possible solutions from the issue make the app work.

How to use another source to find french rap lyrics ?

Hello,

I noticed that unfortunately the bank of lyrics for French rap was rather weak.

Is it possible to include another source to have more lyrics available?

Currently via the Deezer API it is possible to retrieve a lot of lyrics. To do this you first need to retrieve the song id https://api.deezer.com/search?q=sch,marche%20noir .

Then you have to call the API with this id.

https://www.deezer.com/ajax/gw-light.php?method=song.getLyrics&api_version=1.0&api_token=[api-token]&sng_id=[song-id]

Source: https://stackoverflow.com/questions/42165724/how-to-get-lyrics-from-the-deezer-api#answer-59822502

I would be happy to contribute if you put me on the track to add sources ;).

the font is weird when I use it

Hey @SimonIT , shout out to your wonderful work!
The app works perfectly, the only problem is somehow the font it used is different (and ugly) in my end, maybe it's due to my Windows version? I am using the Windows 10 Home China version.
image
Is there any why I can modify the font used in the app? Such as altering the settings.ini ?
Thanks again for your work!

Please let the user choose the lyrics directory

This is a great tool, thanks for it @SimonIT

Could you please add some functionality to choose a custom lyrics path?
Actually, I have saved tens of thousands of *.txt files on my D: data drive.

So the path should be D:\Data\Lyrics\S\Supertramp (Logical Song).txt
(instead of the fixed path C:\Users\%username%\AppData\Roaming\SpotifyLyrics\lyrics)

A commandline option like /LyricsPath would already be a great start .-)

Dragging a song causes it to be stuck loading

When reordering a playlist by dragging a song, the program thinks a song called Drag is being played. This results in it being stuck saying Loading... searching for the lyrics of the song (shown below).

image

Add source comments

Hey, nice work you have done.

It's not that simple to get into that code without comments. Aren't they there on purpose?

Kind regards

Windows download

Hello :)

The readme says that if i wanna install for windows i should download the .exe file. Sadly there is no exe file, i assume the readme might be out of date, so how should one go on installing spotifylyrics on windows ?

Thanks ! :)

Lyrics from lyrics file do not load

When playing a song that has lyrics in a lyrics file, instead of loading the lyrics the following appears:

Lyrics loaded from: ---

Error: Could not find lyrics.

To ensure the filename and location is correct I generated the file with the Save Lyrics button and overwrote the contents with the desired lyrics.

I have only checked this for lyrics in .txt files.
I have checked this both for songs with and without online lyrics.

You deserve a beer or two

Please make a patreon/ko-fi or something, I'd totally support you for a few bucks per month, it's not much but I want to show you my appreciation for continuing this project

Synced Lyrics Suggestion

It'd be nice to have the option for the current line to just have a highlighted background instead of it being larger and bold. Maybe an option in the theme.ini to change the color of the highlight as well.

Terminates when saving while no lyrics present

Thanks for the new version 1.30.

When I press the "Save lyrics" button right after launch, when no lyrics are displayed (yet), the programs simply terminates.

(When lyrics are displayed, all is well, although I needed to check the source on Github to figure out where they're stored. ;-))

I assume def save_lyrics(self): needs to exit earlier on non-existence of lyrics.

The newest.exe doesn't work. The debug version doesn't work but in a different way.

Hey.
I'm using Windows 10.
I am simply unable to download the newest version (1.54) via github (tried on Firefox and Chrome). It does download but then it says that the download failed and running .exe (which seems to have downloaded) just gives me an error that I can't run it on this system.
I tried bypassing it - and downloaded it on my phone, then transferred it on my PC. But after transferring it, after clicking on the .exe it just says I can't open it (worded a bit differently than the previous error) and then it just disappears from the hard drive. The other difference is that the SpotifyLyrics downloaded by the phone had an icon while the 'failed downloads' did not.

I downloaded debug version (1.52) and it runs. But it doesn't download any lyrics. Even on popular songs like Deep Purple - Perfect Strangers, which definitely have the lyrics included. The console debug says simply "Musixmatch: list index out of range" or "Songmeanings: list index out of range". Then again, it could be because it's an outdated version but as you know I can't run the normal one.

Any hints?

P.S. Also yeah, taking songs from Genius would be nice - I feel it has a bigger base than Musicxmatch.

Better song tittle parsing

Hi! There are certain songs that can't be searched properly because special characters in their names.

Just to name one I'm having a problem right now: "Green Day - Holiday / Boulevard of Broken Dreams".

Every lyric provider, including Genius, return the lyrics of "Holiday". Due to Spotify having the version where both songs are combined into 1 track, it would have to search for a lyric that has both songs.

Genius has the lyrics here: https://genius.com/Green-day-holiday-boulevard-of-broken-dreams-lyrics. So, I think the problem lies within the artist - title parsing part of the code. I can't point more songs having this issue but I remember having experienced something like this before.

Thanks a lot for your work!

Desktop app title only says "Spotify Premium"

Unfortunately this app no longer works for me.

The app searches for the title of the Spotify window, and this now only says "Spotify Premium".

1

This means the app is constantly searching for lyrics called "Spotify Premium".

2

Feature suggestion: Autosave, folder location

Hi,

Thank you for this app! Reminds me of good old EvilLyrics.

Two small things that would greatly improve the usability for me - Automatic saving of lyrics to disk (and using those as cache, if it's not done already) and chosing a custom folder where to save those.

The reason is that I want to analyze lyrics of large volumes of work, so having all lyrics downloaded for some artist with an automated tool would be really helpful.

Either way, thank you for this app!

Save Lyrics button does nothing when lyrics exist on disk

If a lyrics file for the current song already exists the Save Lyrics button does nothing, not even telling the user a file already exists. I propose it creates a dialog box that allows the user to choose between overwriting the file and doing nothing.

I have only checked this for lyrics in .txt files.

Pressing the chords button crashes it

When running the .exe it just exits and when running from source code I get UnboundLocalError: local variable 'json_string' referenced before assignment

/bin/bash: xwininfo: command not found

Building directly from my linux maching (Manjaro KDE), when I run the .pyw the terminal outputs this,

/bin/bash: xwininfo: command not found

The program itself seems to be working fine, just want to let you know

Spotify Free is detected as a song

Version 1.23 addresses the detection of "Spotify Premium" as a song, but "Spotify Free" is still detected as a song, leading to it being stuck saying "Loading..." even when a song begins playing. So it seems there also seems to be a problem with it not timing out.

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.