Skip to content

olivierlemoal/mpv-spotify-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv Spotify

This script add current playing title in MPV to a user-defined Spotify playlist. You can use it pressing P keybinding, or use autosave feature.

example

If your radio does not broadcast title, you can use this script along with mpv-radio-title-script.

Usage

Press P to add current title to your Spotify playlist.

Config

Edit spotify.lua

local settings = {
    spotify_helper_path = "spotify_helper", -- Path to Spotify Helper
    playlist_id = "spotify:playlist:0OlQjrqrHIJq7cOED2Qm7H", -- Right click on playlist > Share > Copy Spotify URI
    autosave = false, -- Autosave to Spotify when title is changing
}

Edit spotify_helper

# Create an app on https://developer.spotify.com/dashboard/
# Configure CLIENT_ID / SECRET_ID in spotify_helper
# Configure callback to http://localhost:{PORT_CALLBACK}/callback on Spotify dashboard

CLIENT_ID = ""
SECRET_ID = ""
PORT_CALLBACK = 45678

Install

git clone https://github.com/olivierlemoal/mpv-spotify-script
# Move helper somewhere in your $PATH
mv mpv-spotify-script/spotify_helper ~/.local/bin/
mv mpv-spotify-script/spotify.lua ~/.config/mpv/script
python3 -m pip install --user -r mpv-spotify-script/requirements.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published