Skip to content

Instantly share code, notes, and snippets.

View tuhlaajapoika's full-sized avatar
💭
wut dis?

tuhlaajapoika

💭
wut dis?
View GitHub Profile
@tuhlaajapoika
tuhlaajapoika / change_path.py
Last active April 14, 2025 18:58
Update file system paths in Navidrome's database - bagaag / change_path.py
# This script changes the path for a folder or file in Navidrome's database, allowing music files to be
# moved or renamed on the file system without losing associated metadata in Navidrome. Since the original
# version, it has been updatd to account for the media_file IDs, which are calculated from the path value
# and referenced in several tables.
#
# This script is based on Navidrome version 0.49.2. If you are running an older version of Navidrom, it
# will likely fail. If you are running a newer version of Navidrome, your mileage may vary.
#
# It does NOT make any modifications to the file system - only to the Navidrome database.
#