1
0
Fork 0
This script adds the currently playing title in MPV to a user-defined Spotify playlist.
This repository has been archived on 2026-02-09. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 82.4%
  • Lua 17.6%
Find a file
2026-02-09 12:41:20 +01:00
LICENSE Initial commit 2019-10-10 00:24:23 +02:00
README.md Archive repo 2026-02-09 12:41:20 +01:00
readme.png update README and requirements 2019-10-10 10:49:53 +02:00
requirements.txt rewrite spotify_helper 2024-10-10 15:26:58 +02:00
spotify.lua new URI format and move keybinding to config 2024-10-10 15:27:00 +02:00
spotify_helper rewrite spotify_helper 2024-10-10 15:26:58 +02:00

mpv-add-to-spotify

This project is archived and no longer maintained.

For more details, see Criticism of Spotify on Wikipedia.


This script adds the currently playing title in MPV to a user-defined Spotify playlist. You can use it by pressing the 'P' keybinding or by enabling the autosave feature.

example

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

Usage

Press P to add current title to your Spotify playlist.

Config

  • Edit spotify.lua
local settings = {
    bind_key = "P", -- Prefered key binding
    spotify_helper_path = "spotify_helper", -- Path to Spotify Helper
    playlist_id = "https://open.spotify.com/playlist/37i9dQZEVXcIrtIexJhQmZ?si=84a21eb7d0ff4efd", -- Right click on playlist > Share > Copy Link to Playlist
    autosave = false, -- Autosave to Spotify when title is changing
}

Install

You will need the python-aiohttp package from your distro.

git clone https://codeberg.org/olivierlm/mpv-add-to-spotify
# Move helper somewhere in your $PATH
cp mpv-add-to-spotify/spotify_helper ~/.local/bin/
cp mpv-add-to-spotify/spotify.lua ~/.config/mpv/scripts/