mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* include Folder Size / File Count
This commit is contained in:
parent
f7a99a2ede
commit
bdbc4571be
@ -120,6 +120,7 @@ Channel.4
|
|||||||
Channel.5
|
Channel.5
|
||||||
CLASSIC
|
CLASSIC
|
||||||
CN
|
CN
|
||||||
|
CODIFICAR
|
||||||
ConvertedTV
|
ConvertedTV
|
||||||
Custom.DKsubs
|
Custom.DKsubs
|
||||||
CVCD
|
CVCD
|
||||||
|
@ -3,8 +3,11 @@
|
|||||||
/*
|
/*
|
||||||
* Print media info of all video files to CSV file
|
* Print media info of all video files to CSV file
|
||||||
*/
|
*/
|
||||||
def model = 'Name;Container;Resolution;Video Codec;Video Format;Audio Codec;Audio Format;Audio Language(s);Duration;File Size;Path'
|
def model = '''Name;Container;Resolution;Video Codec;Video Format;Audio Codec;Audio Format;Audio Language(s);Duration;File Size;Folder Size;Folder Count;Path'''
|
||||||
def template = '{fn};{cf};{resolution};{vc};{vf};{ac};{af};{media.AudioLanguageList};{media.DurationString3};{file.length()};{file.getCanonicalPath()}'
|
def template = '''{fn};{cf};{resolution};{vc};{vf};{ac};{af};{media.AudioLanguageList};{media.DurationString3};{file.length()};{folder.listFiles().sum{ it.length() }};{folder.listFiles().sum{ it.isFile() ? 1 : 0 }};{file.getCanonicalPath()}'''
|
||||||
|
|
||||||
|
// sanity check
|
||||||
|
if (args.size() != 2) throw new Exception('Invalid arguments:' + args)
|
||||||
|
|
||||||
// open destination file (writing files requires -trust-script)
|
// open destination file (writing files requires -trust-script)
|
||||||
args[1].withWriter{ output ->
|
args[1].withWriter{ output ->
|
||||||
|
Loading…
Reference in New Issue
Block a user