Move library easily #153
Replies: 1 comment
-
Hey @marniwild49, In principle: yes! However, some information is stored in the analysis (ANLZ) files on your computer, so you have to move those files to the new computer as well. from pyrekordbox import Rekordbox6Database
db = Rekordbox6Database()
content = db.get_content()[0]
anlz_dir = db.get_anlz_dir(content) This will give you a path like
The If you don't have the same folder structure on the new machine you have to update the file paths of your library or Rekordbox will not find the actual music files. The paths are stored in the DB and in the ANLZ files. You can update all relevant files with pyrekordbox, e.g. something like: from pathlib import Path
from pyrekordbox import Rekordbox6Database
db = Rekordbox6Database()
# Assuming all your music is now in the folder C:/Music/
root = Path("C:/Music")
for content in db.get_content():
old_path = Path(content.FolderPath)
# Change root of path, eg. 'C:/Music/some_dir/audio.mp3' -> 'C:/Music/audio.mp3'
# Put your path-handling here!
new_path = root / old_path.name
db.update_content_path(content, new_path, save=True, commit=True) # Updates DB and ANLZ files You may need to adapt this code snipped to your folder structure, this is just a simple example. |
Beta Was this translation helpful? Give feedback.
-
Hi Dylan I'm a software dev working in Wellington and I came across your project, very cool.
Recently I was trying to copy my rekordbox Library from one computer to another computer including all the hot cue points and other information. Do you think if I simply export the tracks, can I copy the master.db file over I will be able to access the same cue points etc?
Beta Was this translation helpful? Give feedback.
All reactions