INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Removing files outside MC  (Read 2764 times)

mdav

  • Junior Woodchuck
  • **
  • Posts: 62
Removing files outside MC
« on: June 03, 2015, 03:29:36 pm »

I have removed audio and video files by using the Explorer in Windows and not in MC. As I understand this will screw up the database? Is there a way to use some smartlist to identify those files?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Removing files outside MC
« Reply #1 on: June 03, 2015, 05:56:52 pm »

Yep.  Import this search into a Smartlist:

Code: [Select]
[=IsMissing([Filename])]=1 ~sort=[Filename]
A word of caution, because it tests the existence of all of your files, it'll be quite slow to open, especially if the files are on slow media like a network drive.  If you can filter them before running that search, it'll work better.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Removing files outside MC
« Reply #2 on: June 03, 2015, 06:02:03 pm »

If you've got a good idea of what directory they are under (the files you removed) you can view them in the Files view and you'll see a red indicator next to each one.  You can then highlight them and delete from Library.

If not, the smartlist will definitely work.

Brian.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Removing files outside MC
« Reply #3 on: June 03, 2015, 06:24:45 pm »

If you know that, you can just add [Filename] contains M:\blah\blah\ to the smartlist (do it above the IsMissing thing to speed it up).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Removing files outside MC
« Reply #4 on: June 03, 2015, 06:45:19 pm »

I guess what I was trying to say was:

If they are all under one directory tree, then you can drill to this directory tree with Files view and then visually identify them by their red icons which show that they are missing.  Honestly, it's probably a very low probability, but I've used this technique in the past for other purposes.

Glynor's suggestions are both probably more likely to be fast and efficient.

Brian.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Removing files outside MC
« Reply #5 on: June 03, 2015, 07:44:54 pm »

Yeah. That definitely works too.

I keep a View in my Advanced top-level View (a custom one now, it used to be built in) called Missing Files that looks like this so I can manage them with panes and filtering and whatnot:


Click to embiggen.


It uses this search:
Code: [Select]
-[Media Type]=[TV] [=IsMissing([Filename])]=1 ~sort=[Filename]
And has a few useful panes, the most useful of which are the Location and Media Types ones at the "front".  It is slow to open, but handy when I need it.  I always have missing files (because of my Drive X offline storage system, and my auto-deleting shows), but that lets me manage any others that slip through.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

jmhsb

  • Recent member
  • *
  • Posts: 20
Re: Removing files outside MC
« Reply #6 on: June 04, 2015, 08:08:41 am »

Yep.  Import this search into a Smartlist:

Code: [Select]
[=IsMissing([Filename])]=1 ~sort=[Filename]
A word of caution, because it tests the existence of all of your files, it'll be quite slow to open, especially if the files are on slow media like a network drive.  If you can filter them before running that search, it'll work better.

Another word of caution:  If you are using this smartlist for maintenance, and you have SACD iso files in your library, do not delete them out of this smartlist.  Since the individual "filenames" for each track in the iso don't actually exist, they will show up in this smartlist.  Deleting them will delete all your SACDs from your library. 
Logged

oie

  • Junior Woodchuck
  • **
  • Posts: 68
Re: Removing files outside MC
« Reply #7 on: June 05, 2015, 04:51:06 am »

Hi,
Glynor, when I use any of your suggested expressions I don't always get the "red icon" next to the file. Yes, some of the files are dsd files but not all.
Any suggestion?.
Thanks in advance
Logged

mdav

  • Junior Woodchuck
  • **
  • Posts: 62
Re: Removing files outside MC
« Reply #8 on: June 10, 2015, 02:19:32 pm »

I think "[=IsMissing([Filename])]=1" is not working for me or I'm getting it wrong, see attached code. I get about 50 DVDs as a result (of about 140 totally). All I've tested play just fine and are not missing. No one of the DVDs has the red icon.

Thanks!
Logged
Pages: [1]   Go Up