Help please to tweak image downloading commands

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
undecided
Posts: 1
Joined: Yesterday, 16:55

Help please to tweak image downloading commands

Post by undecided »

Hi, I was using filebot a while ago and recently created a media archive again so came back to test and see if filebot covers my needs. When I pull fanart for a movie I now only get one fanart image, when I used filebot previously I was able to get a separate folder containing all the fanart images for the film. This was very useful as the default fanart is almost always terrible (usually a big splashscreen with the movie name in huge writing as if you couldn't work out what film you were looking at from the poster image, or even worse when the main fanart image it pulls is just a few actors stood in cheesy poses that has nothing to do with the actual film at all - not even a scene from the film!), was great that I could get what I wanted quickly and easily without having to manually visit TMDB to download a replacement - kind of makes the filebot automation pointless if there's still lots of manual downloading from TMDB website required 95% of the time... Sometimes I swap the fanart as well so having them all in one folder is a real time saver.

I asked around various friends who also loved that feature and seems it's been broken for quite a while?, did the command change and none of us have managed to find the right value or is it really still broken? Given the number of people I know who really want this to work there's certainly demand for fixing this, there must be many more disappointed users out there that I don't know personally as well if there's no currently working option for this. Previously you could use --def extras=y for it.

I also noticed when downloading images and NFOs for TV show episodes I can't find any option to download the episode images, there must be an option somewhere as it can download everything else but I simply can't find it, could you please let me know what command should be used to pull those? Would be incredibly time consuming to have to manually download those even though everything else gets pulled (imagine manually downloading these for a long running show with many hundreds of episodes like The Simpsons or Family Guy!), for example see image from Family Guy S01E01:
https://artworks.thetvdb.com/banners/ep ... 181115.jpg

If I can find a fix for those two then I think I've managed to find commands that do everything I'd need to which would be great, I did have a look around but couldn't find the commands for these myself, hopefully someone better informed can let me know the correct current commands to use.

Thanks
User avatar
rednoah
The Source
Posts: 24027
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help please to tweak image downloading commands

Post by rednoah »

:?: What command are you currently using?

:idea: After a bit of searching, there seems to have been a --def extras parameter in the artwork.* scripts that was removed some 5 years ago. Looking at the code it seems to have been primarily about just dumping the entire artwork collection. Presumably hundreds of files per movie / series. That doesn't quite sound like what you are trying to do? If batch downloading all artwork without limitation is indeed what you're looking for then the code for that would be just a few lines as user-defined script. Nobody has asked for that in recent years so there's no copy & paste code at this point in time.

:idea: TMDB does support artwork ratings and FileBot will tend to choose the highest rated one. Few people rate artwork so if you choose to add your rating then there's a good chance that FileBot will pick that in the future. Maybe try positively rating the backdrops you like? That'll make things work better for everyone.




:?: Maybe you can provide a specific sample file path as text where you're not getting good artwork for whichever command you're currently running?

e.g. processing Alias.1x01.mkv with --apply artwork nfo thumbnail (see --apply post-processing features) adds fine artwork as far as I can tell:

Console Output: Select all

$ filebot -rename *.mkv --db TheMovieDB::TV --output . --format "{plex.id}" --apply artwork nfo thumbnail
Rename episodes using [TheMovieDB] with [Airdate Order]
Lookup via [Alias] [Alias]
Fetching episode data for [Alias]
* Alias [2046] | 105 episodes | 1x01-22 .. 2x01-22 .. 3x01-22 .. 4x01-22 .. 5x01-17
[MOVE] from [Alias.1x01.mkv] to [TV Shows/Alias {tmdb-2046}/Season 01/Alias - S01E01 - Truth Be Told.mkv]
[ARTWORK] https://assets.fanart.tv/fanart/tv/75930/seasonthumb/Alias.jpg (TV Shows/Alias {tmdb-2046}/Season 01/landscape.png)
[ARTWORK] https://image.tmdb.org/t/p/original/MasKO3CnMXL5rMGnBrV583y2mB.jpg (TV Shows/Alias {tmdb-2046}/poster.jpg)
[ARTWORK] https://image.tmdb.org/t/p/original/4eufRkflTkrmmONcswo02A4S6en.jpg (TV Shows/Alias {tmdb-2046}/backdrop.jpg)
[ARTWORK] https://assets.fanart.tv/fanart/tv/75930/hdclearart/alias-51bcfd1b24e30.png (TV Shows/Alias {tmdb-2046}/clearart.png)
[ARTWORK] https://assets.fanart.tv/fanart/tv/75930/hdtvlogo/alias-503c0da536819.png (TV Shows/Alias {tmdb-2046}/logo.png)
[ARTWORK] https://assets.fanart.tv/fanart/tv/75930/tvthumb/alias-4ead42d3e7c64.jpg (TV Shows/Alias {tmdb-2046}/landscape.png)
[NFO] TheMovieDB::TV::2046 (TV Shows/Alias {tmdb-2046}/tvshow.nfo)
[THUMBNAIL] https://image.tmdb.org/t/p/original/6SnHJxvJ4R0rfaHZ36lK655Gzd4.jpg (TV Shows/Alias {tmdb-2046}/Season 01/Alias - S01E01 - Truth Be Told.mkv)
[THUMBNAIL] 1280x720 (TV Shows/Alias {tmdb-2046}/Season 01/Alias - S01E01 - Truth Be Told.jpg)
Processed 1 file
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24027
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help please to tweak image downloading commands

Post by rednoah »

:idea: I typed out a little custom post-processing script to get a conversation started:

Groovy: Select all

{ source, target, metadata ->
	metadata.artwork.eachWithIndex{ a, i ->
		if (a.language =~ /en/) {
			def file = target.dir / "artwork/poster-${i+1}.${a.url.path.extension}"
			if (!file.exists()) {
				println file
				a.url.saveAs(file)
			}
		}
	}
}

:!: But looking at the result, I don't find it very useful as you probably won't ever need the vast majority of artwork files if you decide to download all artwork, and in this case it's just the posters section:
Screenshot


:?: There might be a better way to get the artwork you want. Maybe the Top 3 rated posters will be good enough? Maybe you prefer posters without any text?
:idea: Please read the FAQ and How to Request Help.
Post Reply