Duplicates detection with NFO
Posted: 19 Jan 2018, 08:43
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:
I'm not quite sure how to benchmark this.
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)