Plex: Change media library folder paths directly in the database

Author Johnny Josefsson on September 20, 2014 | Print | Bookmark
Open the Plex database with a SQLite Editor


UPDATE section_locations SET root_path = replace( root_path,
'/Users/johndoe/', '/Users/htpc/' ) WHERE root_path LIKE '/Users/johndoe/%';
UPDATE media_parts SET file = replace( file, '/Users/johndoe/',
'/Users/htpc/' ) WHERE file LIKE '/Users/johndoe/%';
UPDATE media_streams SET url = replace( url, 'file:///Users/johndoe/',
'file:///Users/htpc/' ) WHERE url LIKE 'file:///Users/johndoe/%';

Was this article helpful?

Yes No

Category: Plex

Last updated on November 23, 2014 with 1094 views