Hi, I have just started using the fn:duplicates script as I usually end up with a 720p and 1080p version of my TV episodes. These episodes are renamed using amc with the following command:
Code: Select all
filebot -script fn:amc --output "/mnt/Files/Transmission/Processed" --action copy --conflict override -non-strict "/mnt/Files/Transmission/Complete" --log-file amc.log --def excludeList=amc.txt clean=y xbmc=localhost unsorted=n artwork=n subtitles=en deleteAfterExtract=y storeReport=y "seriesFormat=/mnt/TV/{n}/Season {s}/{n} - {sxe} - {t} ({vf})" "movieFormat=/mnt/Movies/{n} ({y})/{n} ({y}) ({vf})"
As you can see the, resultant episodes end up with the quality (via {vf}) appended to the end, for e.g.:
/mnt/TV/Firefly/Season 1/Firefly - 1x01 - Unchartered (720p).mp4
/mnt/TV/Firefly/Season 1/Firefly - 1x01 - Unchartered (1080p).mkv
I was hoping to use the duplicates script to remove the 720p version from my TV folders a couple of times a week. However whenever I run it on any folder containing duplicates, the script seems to always just delete the 1080p version, or whichever comes last, rather than select the higher quality. I understand it works off xattributes, but when I run the below command, I don't see video quality mentioned in the output, so I am unsure how to apply a filter to help get this right:
Code: Select all
filebot -script fn:xattr /mnt/TV/Modern\ Family/
OUTPUT:
Code: Select all
/mnt/TV/Modern Family/Season 8/Modern Family - 8x03 - Blindsided (1080p).mkv
net.filebot.filename: modern.family.s08e03.blindsided.1080p.web.dl.6ch.hevc.x265.rmteam.mkv
net.filebot.metadata: {"@type":"net.filebot.web.Episode","seriesName":"Modern Family","season":8,"episode":3,"title":"Blindsided","absolute":169,"special":null,"airdate":{"year":2016,"month":10,"day":5},"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"en","id":95011,"name":"Modern Family","aliasNames":["Moderni perhe","Współczesna rodzina","Modern Család","Американская семейка","משפחה מודרנית","モダン・ファミリー","Família Moderna","摩登家庭","Taková moderní rodinka","Moderna obitelj","모던 패밀리"],"certification":"TV-PG","startDate":{"year":2009,"month":9,"day":23},"genres":["Comedy"],"network":"ABC (US)","rating":8.7,"ratingCount":298,"runtime":25,"status":"Continuing"}}
/mnt/TV/Modern Family/Season 8/Modern Family - 8x03 - Blindsided (720p).mkv
net.filebot.filename: Modern.Family.S08E03.720p.HDTV.x264-FLEET[eztv].mkv
net.filebot.metadata: {"@type":"net.filebot.web.Episode","seriesName":"Modern Family","season":8,"episode":3,"title":"Blindsided","absolute":169,"special":null,"airdate":{"year":2016,"month":10,"day":5},"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"en","id":95011,"name":"Modern Family","aliasNames":["Moderni perhe","Współczesna rodzina","Modern Család","Американская семейка","משפחה מודרנית","モダン・ファミリー","Família Moderna","摩登家庭","Taková moderní rodinka","Moderna obitelj","모던 패밀리"],"certification":"TV-PG","startDate":{"year":2009,"month":9,"day":23},"genres":["Comedy"],"network":"ABC (US)","rating":8.7,"ratingCount":298,"runtime":25,"status":"Continuing"}}
This is the command I am running for the duplicates script with it's resultant output:
Code: Select all
filebot -script fn:duplicates filebot -script fn:duplicates /mnt/TV/Modern\ Family/
OUTPUT:
Code: Select all
[*] Modern Family - 8x03 - Blindsided
[+] 1. /mnt/TV/Modern Family/Season 8/Modern Family - 8x03 - Blindsided (720p).mkv
[-] 2. /mnt/TV/Modern Family/Season 8/Modern Family - 8x03 - Blindsided (1080p).mkv
As you can see, it's picking the 1080p for deletion, and I can confirm this is what it does when I add "--action delete" to the command. Any chance you can help me out?
Cheers