Hello, one of my HDD just broke down… and I need to re-create content on another HDD. How to access what files was on this drive (in my case is A:\). Tried ChatGPT to create bat file or another script to filter out what files was on broken drive but this is not working. Now trying SQL DB browsers to find that data, but still i cant find and make list what files was on broken drive. Any tips how to do this simply?
Im working on com.plexapp.plugins.library.db file located at C:\Users\MyUser\AppData\Local\Plex Media Server\Plug-in Support\Databases\
Thanks, I have almost 10K items to process and waiting for output… dont know why so slow. I have Ryzen9-7900, RTX4060, 32GG DDR5 and after 10m its done 1K of 10K items.
Thanks a lot, it works. Yes I set only Title and Part File Path, now I have a list of 1K items to re-create…
Only thing is that csv output have wrong coding and some non-english titles (in my case with Polish signs) are hard to read but I only need to verify WebTools-NG settings
If you also want the title, this query will get it:
SELECT child.title, mp.file
FROM media_parts mp INNER JOIN media_items mi
ON mp.media_item_id = mi.id INNER JOIN metadata_items child
ON mi.metadata_item_id = child.id;
Some extra queries since TV series have entries for the series name and the season.
This query will provide the season (any entry without that data will just be null, so movies for instance):
SELECT parent.title AS "parent_title", child.title, mp.file
FROM media_parts mp INNER JOIN media_items mi
ON mp.media_item_id = mi.id INNER JOIN metadata_items child
ON mi.metadata_item_id = child.id LEFT JOIN metadata_items parent
ON child.parent_id = parent.id;
This query will provide the series name along with the season (and same caveat from above for entries that do not have that data):
SELECT grandparent.title AS "grandparent_title", parent.title AS "parent_title", child.title, mp.file
FROM media_parts mp INNER JOIN media_items mi
ON mp.media_item_id = mi.id INNER JOIN metadata_items child
ON mi.metadata_item_id = child.id LEFT JOIN metadata_items parent
ON child.parent_id = parent.id LEFT JOIN metadata_items grandparent
ON parent.parent_id = grandparent.id;