1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

Experiment with artwork thumbnail support

This commit is contained in:
Reinhard Pointner 2019-05-16 20:12:59 +07:00
parent 889d411c44
commit 431cff4f4e

View File

@ -40,7 +40,7 @@ void createThumbnail(original, thumb, scale) {
void createIndexFile(db) {
def indexFile = _args.outputPath.resolve("images/${db}/thumb/poster/index.txt")
def index = indexFile.dir.listFiles{ it.name =~ /\d+/ }.collect{ it.nameWithoutExtension as int }.toSorted()
def index = indexFile.dir.listFiles()*.getNameWithoutExtension().findAll{ it ==~ /\d+/ }*.toInteger() as TreeSet
index.join('\n').saveAs(indexFile)
execute 'xz', indexFile, '--force', '--keep'