[SwagLyrics] Add support for Linux.
Introduction
SwagLyrics-For-Spotify is an application that fetches the currently playing song from Spotify on Windows and displays the lyrics in the command-line or in a browser tab (using Flask). Refreshes automatically when song changes and uses lyrics fetched from Genius. The application is also available as a pip module.
PyPI : https://pypi.org/project/swaglyrics/
The task
The Spotify app exists for Linux as well and we want to add support for that. Currently, the application is able to fetch the currently playing song and artist only on Windows. Your task is to add a way to get that info on Linux as well. You should modify the code in spotify.py
to get the info and then use the appropriate functions depending on the user's operating system. I did look into it myself however as I'm not a Linux user, I couldn't test it out fully. Check out the included links for a possible solution(?)
Requirements to complete this task
We expect an opened pull request, which contains the modification requested above, unit tests that cover (most of) the changes, and documentation where necessary.