gnoling / UnlinkMKV

Merges ordered chapters / segmented MKVs back into a single file.
MIT License
156 stars 8 forks source link

Temp Directory Deletes Itself #59

Open Ner0Tachiyomi opened 1 year ago

Ner0Tachiyomi commented 1 year ago

Hello,

Everything seems to be running fine with the program. The script runs like I would expect, I see the temp directory being created, all of the .xml files being written, encode files being made, etc. It all seems to be going good but as soon as the last video file is ran the file deletes itself. I'm not really sure what's going on.

I would expect UMKV.tmp to remain in the base directory of the show being worked on after the script is ran. But there's no signs of it, At least not of the video files that were in it. I've ran it multiple times and sometimes the main directory ends up in the recycling bin but it's so small that there's no video files remaining in it. I play back the video files in the main directory and it's clear they weren't just replaced.

I'm not really sure what's going on. Some help would really be appreciated.

Ner0Tachiyomi commented 1 year ago

Here are some examples of how it looks running so you can see the directory is created, the files are being generated and the full cmd after being ran. I hope this helps. Not really sure what I need to provide.

Example Output.txt

1

2

gnoling commented 1 year ago

UMKV.tmp is the work/temporary folder by default, which indeed gets removed when finished. The final file (also by default) would normally be placed in a directory named just UMKV. It looks like there are missing segments, what I would do is place just one episode along with whatever other needed files in it's own directory and then run it with trace level logging (--loglevel trace) just on that episode with no other episodes in the directory with it (otherwise you will get a huge amount of logging).

Also, if you want to keep the temporary directory around to inspect it later, you can add the --no-cleanup option; but this won't contain the final episode, just the bits and pieces while it's working.