Duplicates detection with NFO

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Duplicates detection with NFO

Post 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.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Duplicates detection with NFO

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply