Skip to content

Instantly share code, notes, and snippets.

@yol
yol / transfer_rhytmbox_to_navidrome.py
Last active December 17, 2025 13:58
Migrate library data (playcounts, favorites, import ages etc.) from Rhythmbox to Navidrome
from datetime import datetime, UTC
import logging
from typing import NamedTuple
from pathlib import Path
import sqlite3
from urllib.parse import unquote, urlparse
import untangle
# Path of the music files in rhythmdb (used for conversion of absolute to library-relative)
@yol
yol / transfer.py
Created August 10, 2025 15:03
Transfer song ratings from Rhythmbox to OpenSubsonic server
import libopensonic
import logging
import untangle
from urllib.parse import urlparse, unquote
from pathlib import Path
# Paths in rhythmdb
OLD_PATH = Path("/data/music")
# Paths in subsonic API
NEW_PATH = Path("/music")