### Install odesli-cli from PyPI using pip Source: https://github.com/fabian-thomas/odesli-cli/blob/master/README.md This command provides the simplest way to install the odesli-cli tool. It fetches and installs the latest stable version directly from the Python Package Index (PyPI) using pip, the standard Python package installer. ```bash pip install odesli-cli ``` -------------------------------- ### Build and install odesli-cli from local source Source: https://github.com/fabian-thomas/odesli-cli/blob/master/README.md These commands facilitate installing odesli-cli directly from its source repository. The first command builds the project into a wheel file, and the second command installs that locally generated wheel file into your Python environment. ```bash python -m build pip install dist/*.whl ``` -------------------------------- ### Install Python 'build' package for source compilation Source: https://github.com/fabian-thomas/odesli-cli/blob/master/README.md This command installs the 'build' Python package, which is a necessary prerequisite. It enables the creation of distributable artifacts, such as wheel files, from Python project source code. ```bash pip install build ``` -------------------------------- ### Convert current Spotify track to Tidal link and copy to X clipboard (Linux) Source: https://github.com/fabian-thomas/odesli-cli/blob/master/README.md This advanced Linux-specific command automates the process of sharing a currently playing Spotify track. It first queries Spotify via D-Bus to get the track's URL, then uses odesli-cli to convert it to a Tidal link, and finally pipes the result to xclip for clipboard access. ```bash 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 ``` -------------------------------- ### Retrieve all song information by URL using odesli-cli Source: https://github.com/fabian-thomas/odesli-cli/blob/master/README.md This command demonstrates a core usage of odesli-cli, allowing users to fetch comprehensive details about a song. By providing the song's URL, the tool retrieves and displays all available metadata. ```bash odesli-cli '{URL}' all ``` -------------------------------- ### Open specific URI in Spotify application via D-Bus (Linux) Source: https://github.com/fabian-thomas/odesli-cli/blob/master/README.md This command illustrates how to directly control the Spotify application on Linux using D-Bus. It allows programmatic opening of specific URIs, which can be used to play tracks or navigate within the Spotify client, often as part of a larger script for custom link handling. ```bash qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "{URI}" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.