Treat MKV and MP4 as same file and overwrite if new file is better than previous
-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Treat MKV and MP4 as same file and overwrite if new file is better than previous
Hi
I use amc script to sort out my media but i spend alot of my time deleting duplicates of files that are there because the i have downloaded either a mkv or mp4 version of the file is there a way to treat those the same and only overwrite the current file if the new file is better quality?
I use amc script to sort out my media but i spend alot of my time deleting duplicates of files that are there because the i have downloaded either a mkv or mp4 version of the file is there a way to treat those the same and only overwrite the current file if the new file is better quality?
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
e.g. find duplicates:
e.g. find and delete duplicates:
Find Duplicate Movie or Episode Files
EDIT:
If you are not yet aware of Metadata and Extended Attributes please make sure to read up on that as well.
Shell: Select all
filebot -script fn:duplicates /path/to/files
Shell: Select all
filebot -script fn:duplicates /path/to/files --action delete


EDIT:

-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
Thats exactly what i was looking for thanks 

-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
I gave this a try and it worked mostly, on the odd occasion the 1080p version file will be bigger than the 4k version is there a way to skip that file if this is the case so i can manually look at it and decide for myself?
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous


-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous

Yeah It doesn't happen very often but it does happen, was just interested to know if there was a way to skip this duplicate match for manual inspection later?
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
Unfortunately, this corner case is not supported. There is always one best file and the script does not implement special behaviours for multiple best files or no best files.Movieaholic wrote: ↑07 Oct 2023, 11:14 Yeah It doesn't happen very often but it does happen, was just interested to know if there was a way to skip this duplicate match for manual inspection later?
-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
FileBot r10089 (latest revision; not latest stable release; at time of writing) improves support for this kind of use case via custom post-processing scripts. See Custom Post-Processing Scripts › Delete duplicates for example.
-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
After playing with this a bit it seems im not sure quite how it works/ doing something wrong it worked exactly as expected for movies but for tv shows not so much
https://tinypic.host/image/filebot.SjVNE
https://tinypic.host/image/plex.SjGfQ


https://tinypic.host/image/filebot.SjVNE
https://tinypic.host/image/plex.SjGfQ


-
- Posts: 20
- Joined: 31 Jul 2017, 03:17
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
I see why its not working the mkv files were originally name with TheMovieDB and the mp4 with TheTVDB so it views it as 2 different shows. Thanks
Re: Treat MKV and MP4 as same file and overwrite if new file is better than previous
Ah, yes. If database / ID is different, then the "logical duplicates" detection wouldn't work.