revengineer 142 Posted January 26, 2019 Posted January 26, 2019 Where can I set the metadata path that is shown on the dashboard? Is there anything I need to do after changing this path?
rbjtech 5284 Posted January 26, 2019 Posted January 26, 2019 Library > Advanced > Metadata Path Afterwards, I suggest a restart and a full scan as I don't believe any previous metadata is 'moved' after the change. I hope that helps.
revengineer 142 Posted January 26, 2019 Author Posted January 26, 2019 Library > Advanced > Metadata Path Afterwards, I suggest a restart and a full scan as I don't believe any previous metadata is 'moved' after the change. I hope that helps. Thank you. Ah, there it is, I was looking all over for this setting. I was wondering if I can move the metadata folder from the old to the new location to avoid having to redownload everything.
barat 27 Posted September 28, 2020 Posted September 28, 2020 I' must wondering same thing - can I re-assign path to metadata, stop Emby, and just cp -R old/path new/path ?
Happy2Play 9780 Posted September 28, 2020 Posted September 28, 2020 18 minutes ago, barat said: I' must wondering same thing - can I re-assign path to metadata, stop Emby, and just cp -R old/path new/path ? Copying your metadata to new to new path will not update the database so I am pretty sure it will get purged and re-added on next library scan. I believe you would have to copy metadata to new location and manually update the path in the database from the default token to your custom path. Similar to this
barat 27 Posted September 28, 2020 Posted September 28, 2020 (edited) 1 hour ago, Happy2Play said: Copying your metadata to new to new path will not update the database so I am pretty sure it will get purged and re-added on next library scan. I believe you would have to copy metadata to new location and manually update the path in the database from the default token to your custom path. Am I correct, that if bellow query returns none, then I don't need to replace anything? SELECT * FROM MediaItems WHERE Path LIKE "%volumeUSB2%" OR Images LIKE "%volumeUSB2%"; volumeUSB2 is my current location (USB3.0 SSD) - I've put lot of Emby stuff there (also symlinked data folder), but I would like to reset everything to default locations before I upgrade to new emby 4.5.* I see plenty of records there has %MetadataPath%, or other %%, or things like https links. Also query like bellow returns less than 100 records, and non looks suspecious. Select Id, type, Path, Images FROM MediaItems WHERE (Path IS NOT NULL OR Images IS NOT NULL) AND Images NOT LIKE "https://%" AND Path NOT LIKE "/volume1/%" AND (Path NOT LIKE "\%MetadataPath\%%" ESCAPE '\' OR Images NOT LIKE "\%MetadataPath\%%" ESCAPE '\'); Are there any other tables in library.db (or other sqlite files I should search in?) Edited September 28, 2020 by barat
Happy2Play 9780 Posted September 28, 2020 Posted September 28, 2020 4 hours ago, barat said: Am I correct, that if bellow query returns none, then I don't need to replace anything? SELECT * FROM MediaItems WHERE Path LIKE "%volumeUSB2%" OR Images LIKE "%volumeUSB2%"; volumeUSB2 is my current location (USB3.0 SSD) - I've put lot of Emby stuff there (also symlinked data folder), but I would like to reset everything to default locations before I upgrade to new emby 4.5.* I see plenty of records there has %MetadataPath%, or other %%, or things like https links. Also query like bellow returns less than 100 records, and non looks suspecious. Select Id, type, Path, Images FROM MediaItems WHERE (Path IS NOT NULL OR Images IS NOT NULL) AND Images NOT LIKE "https://%" AND Path NOT LIKE "/volume1/%" AND (Path NOT LIKE "\%MetadataPath\%%" ESCAPE '\' OR Images NOT LIKE "\%MetadataPath\%%" ESCAPE '\'); Are there any other tables in library.db (or other sqlite files I should search in?) Yes if Path and Images don't point to %volumeUSB2%. You should maintain a copy of the entire Emby Server Programdata folder if you want to make changes, as that will allow you to restore if anything goes wrong. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now