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:
parent
889d411c44
commit
431cff4f4e
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user