[DOCS] TV Series / Movie Artwork Scripts

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

[DOCS] TV Series / Movie Artwork Scripts

Post by rednoah »

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.

Code: Select all

	["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.

Code: Select all

["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].

Code: Select all

	fetchArtwork(movieDir['folder.jpg'], movieInfo, 'poster', 'original')
	fetchArtwork(movieDir['backdrop.jpg'], movieInfo, 'backdrop', 'original')
@see
http://api.themoviedb.org/2.1/methods/Movie.getImages
:idea: Please read the FAQ and How to Request Help.
Post Reply