like this, but info from NFO:
viewtopic.php?f=4&t=5#p53
To be used as a database for all your stuff
the Media Index TSV scans too slow and NFO has better info/data I think
btw: I tried to make it myself, but NOT going well

by combining the mi.groovy with this:
Code: Select all
args.getFiles{ it.extension == 'nfo' }.each{ nfo ->
log.finest "Links from NFO: $nfo"
def xml = new XmlSlurper().parse(nfo)
['imdb', 'tmdb', 'tvdb'].each{ db ->
def url = xml."$db".text()
if (url) {
def urlFile = new File(nfo.dir, "${db}.url")
def content = "[InternetShortcut]\nURL=${url}\n"
content.saveAs(urlFile)
log.finest "Url File: [$urlFile] / [$url]"
}
}
}
Code: Select all
{def model = [
'id': 'id',
'title': 'title',
'originaltitle': 'originaltitle',
'year': 'year',
'runtime': 'runtime',
'rating': 'rating',
'video codec': 'fileinfo.streamdetails.video.codec',
'video width': 'fileinfo.streamdetails.video.width',
'video height': 'fileinfo.streamdetails.video.height',
'audio codec': 'fileinfo.streamdetails.audio.codec',
'audio channels': 'fileinfo.streamdetails.audio.channels'
];
def xml = new XmlSlurper().parse(folder/'movie'+'.nfo');
model.values().each{db ->
def info = xml."$db".text()
println db +': '+ info;
}