Deihmos 147 Posted May 4, 2015 Share Posted May 4, 2015 I placed a video in the root of my Movie folder for playback testing then used MBC to delete the file. The problem is it didn't delete just that one file but instead deleted the entire movie library and each file was in a separate folder named after the movie. It didn't go to the recycle bin either. I just tested it with a file and it did the same thing. Link to comment Share on other sites More sharing options...
ebr 14903 Posted May 5, 2015 Share Posted May 5, 2015 Wow, that really sucks. I'm sorry. This is one of the reasons I always want the delete option behind about two advanced settings and a confirmation box . When you put a video in the root of a folder and then allow that to resolve - then that root folder became a movie itself as opposed to a container of other movies. When people delete items like movies they don't just want to delete the video file, they want to delete the entire movie structure. So, that's what happened I'm guessing. The only thing I can think we might be able to do here is to put some sort of "reasonableness" check into the delete function. Basically have it look at what it is about to delete and if it is 20 directories and 200 video files, then maybe refuse it... 2 Link to comment Share on other sites More sharing options...
ginjaninja 533 Posted May 5, 2015 Share Posted May 5, 2015 ouch maybe someone on the forums can recommend an undelete program....dont write anything to the disks if you haven yet.... Link to comment Share on other sites More sharing options...
Deihmos 147 Posted May 5, 2015 Author Share Posted May 5, 2015 I had some of them on a drive when I did a transfer. There are very few movies that I care to keep so no big deal. I will disable the delete option and do it manually next time. Link to comment Share on other sites More sharing options...
FrostByte 5042 Posted May 5, 2015 Share Posted May 5, 2015 (edited) Maybe an option to delete to the Recycle Bin also just in case Edit: Though there may be a limit to how much can go to Recycle Edited May 5, 2015 by FrostByte Link to comment Share on other sites More sharing options...
swhitmore 781 Posted May 5, 2015 Share Posted May 5, 2015 Maybe the warning should give a bit of detail about what is about to be deleted. e.g. "By pressing OK, you are about to delete X number of items. Do you wish to proceed?" Or even I giant list of everything, that way you would definitely know. 1 Link to comment Share on other sites More sharing options...
CBers 6766 Posted May 5, 2015 Share Posted May 5, 2015 Or don't use the option and delete manually via Windows Explorer. 1 Link to comment Share on other sites More sharing options...
JoshuaAJones 54 Posted May 7, 2015 Share Posted May 7, 2015 How about a Delete option that transfers the files to a folder of your choosing as most Movies and some TV episodes (depending on their size) would bypass the Recycle Bin? Creating a new folder would insure that the needed space was available. Then, you could just go through your "Deleted Content" folder later at your leisure. Link to comment Share on other sites More sharing options...
blade005 172 Posted May 7, 2015 Share Posted May 7, 2015 Part of the issue may be libraries set up with UNC shares typically don't send deleted files to Recycle Bin. Link to comment Share on other sites More sharing options...
Fratopolis 62 Posted July 30, 2017 Share Posted July 30, 2017 (edited) . Edited July 30, 2017 by Fratopolis Link to comment Share on other sites More sharing options...
Fratopolis 62 Posted July 30, 2017 Share Posted July 30, 2017 So I spent several months converting all my DVD's an Blu Rays a while back. All deleted when I removed one movie. Folder Structure Movies - DVDS - Blu Ray I had one movie in the movies folder itself. I deleted this from the emby interface and viola every item in the entire folder and sub folders gone. Checked the log files. This is just the A's of my blu Ray Folder. Much shorter than the A's of my DVD folder. You will see the delete request. 1291 movies Manually Converted gone in a snap. 2017-07-30 16:34:21.3317 Info HttpServer: HTTP GET http://localhost:80/emby/System/Endpoint. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 2017-07-30 16:34:21.3317 Info HttpServer: HTTP Response 200 to ::1. Time: 1ms. http://localhost:80/emby/System/Endpoint 2017-07-30 16:34:30.9865 Info HttpServer: HTTP DELETE http://localhost:80/emby/Items/c9ad572c64a190f05b54dbf8dd03e1e6. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 2017-07-30 16:34:30.9865 Info App: Deleting item, Type: Movie, Name: An Inconvenient Truth, Path: A:\TV_MEDIA\MOVIES\An Inconveient Truth (2006).mp4, Id: c9ad572c-64a1-90f0-5b54-dbf8dd03e1e6 2017-07-30 16:34:32.4456 Info HttpServer: HTTP GET http://localhost:80/web/css/images/logo.png. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 2017-07-30 16:34:32.4456 Info HttpServer: HTTP Response 304 to ::1. Time: 1ms. http://localhost:80/web/css/images/logo.png 2017-07-30 16:34:32.8494 Error HttpServer: Error processing request *** Error Report *** Version: 3.2.26.0 Command line: C:\Users\Mark\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 8 Program data path: C:\Users\Mark\AppData\Roaming\Emby-Server Application directory: C:\Users\Mark\AppData\Roaming\Emby-Server\System System.IO.IOException: Access to the path 'A:\TV_MEDIA\MOVIES\Movies 1' is denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Emby.Common.Implementations.IO.ManagedFileSystem.DeleteDirectory(String path, Boolean recursive) at Emby.Server.Implementations.Library.LibraryManager.<DeleteItem>d__76.MoveNext() System.IO.IOException at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Emby.Common.Implementations.IO.ManagedFileSystem.DeleteDirectory(String path, Boolean recursive) at Emby.Server.Implementations.Library.LibraryManager.<DeleteItem>d__76.MoveNext() 2017-07-30 16:34:32.8494 Info HttpServer: HTTP Response 500 to ::1. Time: 1864ms (slow). http://localhost:80/emby/Items/c9ad572c64a190f05b54dbf8dd03e1e6 2017-07-30 16:35:25.2512 Info HttpServer: HTTP GET http://97.87.114.52:80/emby/system/info/public. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.2972 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 46ms. http://97.87.114.52:80/emby/system/info/public 2017-07-30 16:35:25.3711 Info HttpServer: HTTP GET http://97.87.114.52:80/emby/Connect/Exchange?format=json&ConnectUserId=94215. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.3711 Info SessionManager: Reissuing access token: 42b13ebd02314bcbb63d79e5a3437d09 2017-07-30 16:35:25.3711 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 2ms. http://97.87.114.52:80/emby/Connect/Exchange?format=json&ConnectUserId=94215 2017-07-30 16:35:25.4591 Info HttpServer: HTTP GET http://97.87.114.52:80/emby/System/Info. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.4771 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 18ms. http://97.87.114.52:80/emby/System/Info 2017-07-30 16:35:25.5711 Info HttpServer: HTTP GET http://97.87.114.52:80/emby/users/974ba0ef55414069bc1ae6407163d4e4. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.5711 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 1ms. http://97.87.114.52:80/emby/users/974ba0ef55414069bc1ae6407163d4e4 2017-07-30 16:35:25.7033 Info HttpServer: HTTP GET http://97.87.114.52:80/emby/DisplayPreferences/usersettings?userId=974ba0ef55414069bc1ae6407163d4e4&client=emby. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.7033 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 1ms. http://97.87.114.52:80/emby/DisplayPreferences/usersettings?userId=974ba0ef55414069bc1ae6407163d4e4&client=emby 2017-07-30 16:35:25.7707 Info HttpServer: HTTP GET http://97.87.114.52:80/emby/Sync/Items/Ready?TargetId=KocfIliFRwLPzGdoBfTy25FBFBWYVSuJfkoZ7CEW1c. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.7707 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 2ms. http://97.87.114.52:80/emby/Sync/Items/Ready?TargetId=KocfIliFRwLPzGdoBfTy25FBFBWYVSuJfkoZ7CEW1c 2017-07-30 16:35:25.8410 Info HttpServer: HTTP POST http://97.87.114.52:80/emby/Sync/Data. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; MSAppHost/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393 2017-07-30 16:35:25.8410 Info HttpServer: HTTP Response 200 to 47.34.125.185. Time: 3ms. http://97.87.114.52:80/emby/Sync/Data 2017-07-30 16:35:32.1774 Info LibraryMonitor: Movies 1 (A:\TV_MEDIA\MOVIES\Movies 1) will be refreshed. 2017-07-30 16:35:32.3441 Info App: Deleting item, Type: Movie, Name: 21 Jump Street, Path: A:\TV_MEDIA\MOVIES\Movies 1\21 Jump Street (2012).mp4, Id: 4c6f5603-7ad2-e1dd-822b-0f339d26961c 2017-07-30 16:35:32.3611 Info App: Deleting item, Type: Movie, Name: Last Stand of the 300, Path: A:\TV_MEDIA\MOVIES\Movies 1\300 (2007).mp4, Id: 3be37f86-950a-b939-6690-77f7309b50b1 2017-07-30 16:35:32.3692 Info App: Deleting item, Type: Movie, Name: 3: The Dale Earnhardt Story, Path: A:\TV_MEDIA\MOVIES\Movies 1\3-The Dale Earnhardt Story (2004).mp4, Id: 6e0c87e8-c7ec-c5e8-9128-543bf9996179 2017-07-30 16:35:32.3692 Info App: Deleting item, Type: Movie, Name: 50-50, Path: A:\TV_MEDIA\MOVIES\Movies 1\50-50 (2011).mp4, Id: 8aee87f9-ed21-a377-2903-7556fb47da00 2017-07-30 16:35:32.3872 Info App: Deleting item, Type: Movie, Name: A Good Day to Die Hard, Path: A:\TV_MEDIA\MOVIES\Movies 1\A Good Day to Die Hard (2013).mp4, Id: bc0ed410-d48d-2810-400c-fcb611b2803b 2017-07-30 16:35:32.3999 Info App: Deleting item, Type: Movie, Name: Act of Valor, Path: A:\TV_MEDIA\MOVIES\Movies 1\Act of Valor (2012).mp4, Id: 86dc9fb8-f8e4-27cb-d9e8-f482397dc3e6 2017-07-30 16:35:32.4259 Info App: Deleting item, Type: Movie, Name: Aloha, Path: A:\TV_MEDIA\MOVIES\Movies 1\Aloha (2015).mp4, Id: d72810ef-b631-bf1c-b019-b5e89c6f4745 2017-07-30 16:35:32.4788 Info App: Deleting item, Type: Movie, Name: Argo, Path: A:\TV_MEDIA\MOVIES\Movies 1\Argo (2012).mp4, Id: df4bd8b4-66a3-df5e-a61b-c3dd3824fcf7 2017-07-30 16:35:32.4989 Info App: Deleting item, Type: Movie, Name: Australia, Path: A:\TV_MEDIA\MOVIES\Movies 1\Australia (2008).mp4, Id: 21f39061-2f65-eb1f-f3bc-6fcc87baa5a3 2017-07-30 16:35:32.5180 Info App: Deleting item, Type: Movie, Name: Avatar, Path: A:\TV_MEDIA\MOVIES\Movies 1\Avatar (2009).mp4, Id: e9a42e5f-f337-0500-58a3-eb9a57071d64 Link to comment Share on other sites More sharing options...
Fratopolis 62 Posted July 30, 2017 Share Posted July 30, 2017 I guess I forgot to mention. I have a nightly Backup As well an automated backup of the Backup as well Just wanted to inform people there may be a bug. Currently restoring now. Another 2hr and 50min to go. Link to comment Share on other sites More sharing options...
Luke 37008 Posted July 30, 2017 Share Posted July 30, 2017 What title did you delete? Link to comment Share on other sites More sharing options...
Luke 37008 Posted July 30, 2017 Share Posted July 30, 2017 Ok i see it in your log above. i'll look into it. For those reading, this issue is limited to situations where you mix multiple movies into a single folder without having a sub-folder for each movie. Thanks. Link to comment Share on other sites More sharing options...
Fratopolis 62 Posted July 30, 2017 Share Posted July 30, 2017 Well I had moved "An Inconvenient Truth" to my DVD folder after converting from the Root Movies Folder. Basically I have three folders but two are DVD folders. I copied the movie "An Inconvenient Truth" from root of movie folder to "Movies 3" folder then in the GUI deleted the original scanned. I make sure to do it from the GUI to keep the database clean instead of just deleting files. No longer will I do this haha. Actually I will. Got plenty of backups Link to comment Share on other sites More sharing options...
Fratopolis 62 Posted July 30, 2017 Share Posted July 30, 2017 Ahh so it thought the folders were extras? Link to comment Share on other sites More sharing options...
Luke 37008 Posted July 31, 2017 Share Posted July 31, 2017 Your particular scenario is resolved for the next release, thanks. Link to comment Share on other sites More sharing options...
darkassassin07 418 Posted July 31, 2017 Share Posted July 31, 2017 I am so glad I have never used the delete function in emby, my whole movie library is a single folder on each drive full of video files. Link to comment Share on other sites More sharing options...
ebr 14903 Posted July 31, 2017 Share Posted July 31, 2017 I am so glad I have never used the delete function in emby, my whole movie library is a single folder on each drive full of video files. That would not be a problem. His setup was a combination of movies in a root folder and other movies in sub-folders. That would be pretty un-common I would think. Link to comment Share on other sites More sharing options...
darkassassin07 418 Posted July 31, 2017 Share Posted July 31, 2017 Well, i have that too, the vast majority of my movies are in a single folder with a few sub folders for larger collections like the 24 007 movies. Link to comment Share on other sites More sharing options...
Dibbes 431 Posted August 1, 2017 Share Posted August 1, 2017 Well, i have that too, the vast majority of my movies are in a single folder with a few sub folders for larger collections like the 24 007 movies. Just out of curiousity, but what is the reason that you wouldn't sort every movie into its own folder? Link to comment Share on other sites More sharing options...
darkassassin07 418 Posted August 1, 2017 Share Posted August 1, 2017 Because its unnecessary. Every movie is one file, maybe two if its got subtitles. Why bother with sub folders with one file in them. Link to comment Share on other sites More sharing options...
Dibbes 431 Posted August 1, 2017 Share Posted August 1, 2017 Fair enough... I got all the metadata and local trailers saved in those folders too, so I do have a folder for every movie, series and music album... Link to comment Share on other sites More sharing options...
ebr 14903 Posted August 1, 2017 Share Posted August 1, 2017 Because its unnecessary. Every movie is one file, maybe two if its got subtitles. Why bother with sub folders with one file in them. You don't have to but some reasons would be: 1) Ease of organization and management 2) Saving metadata with the media allows for much more efficient re-building of the library and also ensures any modifications you make survive things like complete re-installs 3) Problems like the one in this thread are much less likely to happen 4) More efficient use of your file system. Most file systems have limits on the number of files in a single folder and also get much less efficient when dealing with extremely large sets of data. Think of it as kind of a quicker search tree for the file system. Link to comment Share on other sites More sharing options...
dcook 265 Posted August 1, 2017 Share Posted August 1, 2017 As per your Reason 4, Its actually best practice to have sub folders, Microsoft does not like thousands of files in a single folder, must faster to have them in their own folders. Link to comment Share on other sites More sharing options...
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