Board index Scripting and Automation [DOCS] TV Series / Movie Artwork Scripts

[DOCS] TV Series / Movie Artwork Scripts

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc

rednoah User avatar
The Source

Posts: 2083
Location: 北京

The TV series artwork script fn:artwork.tvdb grabs series artwork [poster, series, fanart] type images and tries to pick the best resolution available. It'll also grab season artwork [season, seasonwide] for each season folder.

   ["680x1000",  null].findResult{ fetchBanner(seriesDir['folder.jpg'], series, "poster", it) }
   ["graphical", null].findResult{ fetchBanner(seriesDir['banner.jpg'], series, "series", it) }
   
   // fetch highest resolution fanart
   ["1920x1080", "1280x720", null].findResult{ fetchBanner(seriesDir["fanart.jpg"], series, "fanart", it) }
   
   // fetch season banners
   if (seasonDir != seriesDir) {
      fetchBanner(seasonDir["folder.jpg"], series, "season", "season", season)
      fetchBanner(seasonDir["banner.jpg"], series, "season", "seasonwide", season)
   }


e.g.
["1920x1080", "1280x720", null].findResult{ fetchBanner(seriesDir["fanart.jpg"], series, "fanart", it) }

Means it'll try to fetch "fanart" preferably in 1920x1080, or 1280x720, or any resolution, and then save it as "fanart.jpg"


The movie artwork script fn:artwork.tmdb is pretty simple. TheMovieDB only supports "poster" or "backdrop" type images in and then just different sizes [original, mid, cover, thumb].

   fetchArtwork(movieDir['folder.jpg'], movieInfo, 'poster', 'original')
   fetchArtwork(movieDir['backdrop.jpg'], movieInfo, 'backdrop', 'original')

@see
http://api.themoviedb.org/2.1/methods/Movie.getImages
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image

Return to Scripting and Automation