Page 1 of 1

Duplicates detection with NFO

Posted: 19 Jan 2018, 08:43
by devster
Assuming a folder structure for Kodi, with .nfo files for each episode or movie, how much slower would it be to execute the operations of the duplicate.groovy script but substituting the metadata read from extended attributes with information from the NFO file?

Something like:

Code: Select all

def nfo = new XmlSlurper().parse(folder/"movie.nfo")
args.getFiles{ it.isVideo() }.groupBy{ nfo.id } // should contain IMDB id for movies or episode ID for shows (TVDB)
I'm not quite sure how to benchmark this.

Re: Duplicates detection with NFO

Posted: 19 Jan 2018, 08:59
by rednoah
It would be extremely fast, to the point where I wouldn't worry about performance at all. Reading xattr is like reading a file, so you'll get comparable performance characteristics.