Just grab specific fanart

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 16415
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Just grab specific fanart

Post by rednoah » 03 Nov 2012, 13:18

Here's an example of how to use the predefined stuff in lib/htpc to grab specific kinds of artwork.

D:/grab-fanart.groovy

Code: Select all

// include http://filebot.sourceforge.net/scripts/lib/htpc.groovy
include('fn:lib/htpc')

// use --q as query
def tvshows = TheTVDB.search(_args.query)

// just grab artwork for the first result and save as --output
fetchSeriesBanner(_args.output, tvshows[0], 'fanart', null, null, null)
Cmdline Usage:

Code: Select all

filebot -script D:/grab-fanart.groovy --q "Alias" --output "D:/alias-fanart.jpg"
:idea: Please read the FAQ and How to Request Help.

Post Reply