Invalid directory name created from metadata

Just started recording the TV Show. The Show folder appeared in my TV Show directly but nothing else did. Recorded by HDhomerun on to Plex which is monitored by MCB which cuts out the commercials and reformats them to mkv file. All my other recordings are working fine. Not sure why this one is give MCB trouble here is the log
World’s Dumbest … (2008) - S14E13 - World’s Dumbest Brawlers 14.ts-Convert to MKV-2025-03-21T07-35-43.log (1.5 MB)

It’s converting just fine, it’s not able to access the destination drive/folder

ERROR> → Unable to move file B:\MCEbuddy Temp\working0\World’s Dumbest … - S14E13 - World’s Dumbest Brawlers 14.mkv to G:\TV Shows
Error :System.IO.DirectoryNotFoundException: Could not find a part of the path.

If you’re using a network folder you to enter the credentials or set it up such that the engine can access it from system space (not user space). See this FAQ for networked files.

Nope not network folder, I have 9 drives on My Windows 11 machine with 2 of the main drives being NVMe Drive C: has the O.S. and the other NVMe is Drive B: which is my DVR drive for Plex all the other TV shows being recorded on the same setup work fine.

Ok, for whatever reason windows can’t find that folder at the moment when MCEBuddy is trying to move the converted file. Could be a drive going bad, could be contention blocking access etc.

I have 9 tuners and it records fine I can play it on PLEX but it is full size TS file with all commercials. Here is another file that worked can you see why this one worked?
The Steve Wilkos Show (2007) - S09E153 - I Watch the Show I Know He’s Cheating.ts-Convert to MKV-2025-03-21T16-02-37.log (1.4 MB)

I don’t know how to answer a question why “something works”. I guess because it’s support to work.

I can tell you why it didn’t work above is because windows was unable to access the drive / folder. Now why it was unable to access I don’t know. Like I mentioned it would be a failing drive (likely for SSD), lose cable connector (more likely for traditional drives) or some software like an antivirus blocking access (unlikely). If you open your windows error logs you may find some clues about it and if there are any hardware issue you will likely see connection issues or errors logged there.

Okay rebooted the machine moved the TS files to another drive and changed the output on MCE to another drive NOPE under 3 different setups thinking might be a drive and it all points to MCE the T.S. files can be viewed with zero problems they scan okay but when its converted and transfered to the new drive creating the folder name of the show with nothing in it.
World’s Dumbest … (2008) - S09E05 - World’s Dumbest Criminals 23.ts-Convert to MKV-2025-03-22T17-27-02.log (1.6 MB)
World’s Dumbest … (2008) - S10E01 - World’s Dumbest Brawlers 6.ts-Convert to MKV-2025-03-22T17-58-12.log (1.6 MB)
World’s Dumbest … (2008) - S15E10 - World’s Dumbest Motorheads 10.ts-Convert to MKV-2025-03-22T18-19-18.log (1.6 MB)

Hmm, if it’s still not working after changing drives then I suspect it may have something to do with the file renaming in the last step. I’ll deep dive into it more but as a quick test turn off file renaming in the conversion task settings and then try to convert one of the original files that earlier failed to move using the same conversion task without file renaming enabled.

Okay I think I found the issue, there’s an extra space in your folder structure at the end of the folder name which is throwing Windows off.

\World's Dumbest \

I’ll deeper into it to see why there’s an extra space ending up in there.

Maybe Hdhomerun is sending the wrong TV show name where it originates from? Way past my pay grade! LOL I go and remove the space manually and see how it converts

YEP definitely MCE naming problem wasn’t the folder name the file name created by HDhomerun with Plex I changed it and it worked! Problem is nothing automatic about it. That would require me to manually do each episode like this to work. MCE doesn’t like dot ,dot,dot LOL
World’s Dumbest - S09E05 - World’s Dumbest Criminals 23.ts-Convert to MKV-2025-03-23T18-57-45.log (1.6 MB)

This has been fixed in today’s 2.6.5 beta build. It will take care of invalid character sequences in directory naming emanating from metadata which includes handing dots, leading and trailing spaces. Try out today’s build and let me know if it fixes the issue. A directory name cannot end with a . in Windows so know that it will be removed automatically.

Thanks for reporting this.

1 Like

YES ! It fixed it! Thank You!!!