so I pass all files from amc and if I use e.g.
fileset.each{fileSizeINbytes += new BigDecimal(MediaInfo.snapshot(it).values()[0]['FileSize'].join('')) }}
and place e.g.
fileSizeINbytes.each{filesize(it)} in the fileinfo it works, but I don't think its the best way...
I want to use the existing "fileinfo..." part in htpc, but how...
I need to combine them into 1 set before I can use it...
make it unique and get sum... (best if done for all so I don't need to do something for every entry)
if I modify
def mi = tryLogCatch{ movieFile ? MediaInfo.snapshot(movieFile) : null
to e.g. fileset.each{(mi += MediaInfo.snapshot(it) ) }
(making it an Array with maps inside)
and add en extra "each" to "fileinfo..." it works but it writes separate sets in movie.nfo
I have tried and tried diff. things, but no luck
this is to complex for me, I need more to go on pls ?
you can use this as a sample:
def mi = [[General:[[FileName:'PUKKA.cd1', FileSize:731893308, Duration:2900390, OverallBitRate:2018543]],Video:[[Codec:'XVID', Duration:2900690, BitRate:1561146, Width:640, Height:272]],Audio:[[Codec:'AC3', Duration:2900666, BitRate:448000, Channel:6]]], [General:[[FileName:'PUKKA.cd2', FileSize:730903372, Duration:3472303, OverallBitRate:1683332]],Video:[[Codec:'XVID', Duration:3472303, BitRate:1226337, Width:640, Height:272]],Audio:[[Codec:'AC3', Duration:3472374, BitRate:448000, Channel:6]]]];