CLI client for the Odesli/Songlink API.
Project description
odesli-cli
CLI client for the Odesli/Songlink API.
Installation
pip install odesli-cli
From source
Install the PyPI package build:
pip install build
Then (from the root of the repo):
pip install dist/*.whl
Sample usages:
Get information on a song by it's url
odesli-cli '{URL}' all
Convert current Spotify track to Tidal link and copy it to the X clipboard (Linux only)
current_spotify="$(qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep xesam:url | awk '{print $2}')"
odesli-cli "$current_spotify" --provider tidal link | xclip -selection clipboard
Open Tidal, Spotify, Deezer, etc. links directly in the Spotify app (The coolest one, Linux only)
For this functionality one needs to hack a bit more. I have it all set up with my Linux dofiles, so trust me, it works. Just some key points to make it work:
- Create a shell script that can handle all sorts of http(s) links and set it as the mime default.
- Match Tidal, etc. links, convert them with this tool and play them with
qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "{URI}". - Match Spotify links and play them directly with above command (note that you need to convert the url to a uri in both cases).
If you need additional information don't hesitate to contact me via mail. I haven't tried the dbus command for playing with the Tidal or Deezer apps, but it may work for them in the same fashion.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odesli-cli-0.0.3.tar.gz.
File metadata
- Download URL: odesli-cli-0.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90aa761f82eb8eb0226c7193d56413902c8290d508ab46355a57e0d6cc77631c
|
|
| MD5 |
dcec42c8558d20ebbb0f9f08b91b74ee
|
|
| BLAKE2b-256 |
feb8392fb7c6775d4f49a44319d50502d98c77bc44961e505fcb8d3829d0eab4
|
File details
Details for the file odesli_cli-0.0.3-py3-none-any.whl.
File metadata
- Download URL: odesli_cli-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9776161c2fb7c61eeb42abc71b73bbce0c2bb5d23881b0afe34b2e0024721143
|
|
| MD5 |
6e68148cc8e24454e1b89113e50478d0
|
|
| BLAKE2b-256 |
b1765c1387b778945105089302e625a151e90de9fad1fe7f7fcde1317cecbeae
|