The one thing I'd like to do here is to have it also download the artwork. I have run this
Code: Select all
filebot -script fn:artwork.tmdb '/data/Video/_New Movies/'
In the sorty script, I am not sure if I should run the script before or after the rename function, could someone please give me the best way here? I'm not sure how to get the new folder name after the rename has occurred, to pass to the fn:artwork (or is there a better way).
This is from sorty
Code: Select all
movieDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
println "Processing $dir"
def files = dir.listFiles{ it.isVideo() }
// fetch subtitles
files += getSubtitles(file:files)
// sort movies / subtitles
rename(file:files, db:'TheMovieDB', format:movieFormat)
//IS THIS THE BEST PLACE TO RUN THE ART DOWNLOAD SCRIPT? HOW CAN I GET THE NEW FOLDER NAME TO PASS TO IT?
//filebot -script fn:artwork.tmdb NEW_FOLDER_NAME_HERE?
}