elpoolet 26 Posted February 22, 2022 Posted February 22, 2022 (edited) Hi All. Due to an Hard Drive issue, i stopped Emby Server during the replacement of a defective HardDrive. I looked for a way to disable "Directory Watching - or Library Real Time monitoring by guessing the DB but I didn't notice a change in the MediaItems table with items of 'type' 4. Is there a way to achieve this ? because I don't want Emby to delete my 1600 movies database... Thanks for you support. Is there a DataBase description to help me to find what SQL command to pass in order to achieve this ? Edited February 22, 2022 by elpoolet typo
elpoolet 26 Posted February 22, 2022 Author Posted February 22, 2022 Just now, FrostByte said: Why not just go into your library settings and turn off RTM for each library? Cause, I got lot of libraries and I don't want to bet I'm faster than the system to start a scan.... And , IMHU, for repeadted tasks, a good SQL sentence with SQLiteDatabrowser is a way faster than clicking in the browser.... 1
elpoolet 26 Posted February 22, 2022 Author Posted February 22, 2022 What I think I discovered, EMby devs, please confirm me I'm right : 1 - All items are stored in the 'MediaItems' table of the database in the "library.db" file, witch can be opened with DB Browser for SQLite. 2 - The request "SELECT * FROM `MediaItems` WHERE `type` = 4" lists all Libraries 3 - The request "SELECT * FROM `MediaItems` WHERE `type` = 3 order by TopParentId" lists all directories that are defined for each library But, for some items, the data looks a bit strange, cause I got a row with a very old naming (and a path that no longer exists) in the 'Path' column.... Thanks for reading, and help me to find the right way to prevent the re-downloading of synopsis and images for a great piece of my film library...
Luke 42085 Posted February 22, 2022 Posted February 22, 2022 Hi, are changes still occurring? The realtime monitor only reacts to changes happening at that moment. If you start the server up, it's not going to know about changes that occurred on the file system while the server was shut down. Based on that, do you still have an issue here?
elpoolet 26 Posted February 22, 2022 Author Posted February 22, 2022 6 minutes ago, Luke said: Hi, are changes still occurring? The realtime monitor only reacts to changes happening at that moment. If you start the server up, it's not going to know about changes that occurred on the file system while the server was shut down. Based on that, do you still have an issue here? Hi @Luke Many thanks for this information. There were changes occured between the disk issue and the server shutdown but the logs didn't show any impact on the library. To ensure I understantd : If the emby server is down, and I move some forlders during this time, the library update won't run at startup but only as Scheduled task and if a change is detected after startup ? I'll do my best to keep absolute path names, but, if there's a safe way to migrate the paths it will probably be a bit more comfortable... (Il try this : )
Solution Luke 42085 Posted February 22, 2022 Solution Posted February 22, 2022 Quote To ensure I understantd : If the emby server is down, and I move some forlders during this time, the library update won't run at startup but only as Scheduled task and if a change is detected after startup ? Correct.
elpoolet 26 Posted February 22, 2022 Author Posted February 22, 2022 8 minutes ago, Luke said: Correct. Great !!! Thanks
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