how to get filebot to download ALL available movie posters?

Any questions? Need some help?
Post Reply
cyr0nk0r
Posts: 3
Joined: 15 Nov 2020, 20:23

how to get filebot to download ALL available movie posters?

Post by cyr0nk0r »

script =
.\filebot.exe -script fn:artwork.tmdb <path to movies>

The problem is, the script is only downloading the 'first' movie poster available instead of ALL of the available movie posters.
How do I get filebot to download more than just the first available movie poster?
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

Re: how to get filebot to download ALL available movie posters?

Post by kim »

do you mean all posters from same movie ?

you cant... but you can make your own script to do this
cyr0nk0r
Posts: 3
Joined: 15 Nov 2020, 20:23

Re: how to get filebot to download ALL available movie posters?

Post by cyr0nk0r »

correct, all available posters for the same movie.
User avatar
rednoah
The Source
Posts: 19130
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to get filebot to download ALL available movie posters?

Post by rednoah »

This feature (i.e. fetch all backdrops) was removed rather recently actually, because nobody was using it. I'd concur with kim that this use case would be best served with a dedicated script.
:idea: Please read the FAQ and How to Request Help.
cyr0nk0r
Posts: 3
Joined: 15 Nov 2020, 20:23

Re: how to get filebot to download ALL available movie posters?

Post by cyr0nk0r »

then how do I modify the existing script to add the code back in that gets the feature back?
I don't have enough knowledge about filebot scripts to make something dedicated.
User avatar
rednoah
The Source
Posts: 19130
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to get filebot to download ALL available movie posters?

Post by rednoah »

Writing new scripts would be significantly easier than modifying existing scripts. Then again, some Groovy programming skills will be required either way.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

Re: how to get filebot to download ALL available movie posters?

Post by kim »

rednoah wrote: 16 Nov 2020, 03:26 This feature (i.e. fetch all backdrops) was removed rather recently actually, because nobody was using it.
How do you know this, is filebot tracking what we do ?
(try searching forum "extras=y")
also I do not see the harm in leaving this option in ?
btw: I know people do use "generate url files" but maybe it's better to make a separate script for this ?

This may be a easy fix but you are adding +1 api call by not using the cache, yes ?

Code: Select all

fetchMovieArtwork(movieDir.resolve('poster.jpg'), movieInfo, 'posters', override, locale)
fetchMovieArtwork(movieDir.resolve('fanart.jpg'), movieInfo, 'backdrops', override, Locale.ROOT)

The better way to solve both "all" poster and fanart (the kodi way) is to add the info in the movie.nfo then you can see all in kodi and choose the one you like

e.g.

Code: Select all

<thumb aspect="poster" preview="http://image.tmdb.org/t/p/w500/9rtrRGeRnL0JKtu9IMBWsmlmmZz.jpg">http://image.tmdb.org/t/p/original/9rtrRGeRnL0JKtu9IMBWsmlmmZz.jpg</thumb>
<thumb aspect="poster" preview="http://image.tmdb.org/t/p/w500/eRoXqOzciHkSPs1Z8pGnJMZo0Zb.jpg">http://image.tmdb.org/t/p/original/eRoXqOzciHkSPs1Z8pGnJMZo0Zb.jpg</thumb>
and

Code: Select all

<fanart>
        <thumb preview="https://assets.fanart.tv/preview/movies/141052/moviebackground/justice-league-5793f518c6d6e.jpg">https://assets.fanart.tv/fanart/movies/141052/moviebackground/justice-league-5793f518c6d6e.jpg</thumb>
        <thumb preview="https://assets.fanart.tv/preview/movies/141052/moviebackground/justice-league-5a119394ea362.jpg">https://assets.fanart.tv/fanart/movies/141052/moviebackground/justice-league-5a119394ea362.jpg</thumb>
</fanart>
https://kodi.wiki/view/NFO_files/Movies
User avatar
rednoah
The Source
Posts: 19130
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to get filebot to download ALL available movie posters?

Post by rednoah »

kim wrote: 16 Nov 2020, 21:46 How do you know this, is filebot tracking what we do ?
No, but based on the feedback here in the forums (i.e. command-line and console log) it doesn't seem particularly popular. Of course, it was added because at least 1-2 people asked for it.

kim wrote: 16 Nov 2020, 21:46 I know people do use "generate url files" but maybe it's better to make a separate script for this?
That aspect of --def extras=y is covered by --apply url noways. There's definitely a good number of users that want url files with ids. I suspect only a small number of those users also want all the backdrops. Making a separate script for all artwork makes sense, especially one that includes all posters and not just all backdrops so the OP is covered as well.

kim wrote: 16 Nov 2020, 21:46 This may be a easy fix but you are adding +1 api call by not using the cache, yes ?

Code: Select all

fetchMovieArtwork(movieDir.resolve('poster.jpg'), movieInfo, 'posters', override, locale)
fetchMovieArtwork(movieDir.resolve('fanart.jpg'), movieInfo, 'backdrops', override, Locale.ROOT)
Depending on the database, maybe. However, TheMovieDB has both posters and backdrops information in a single json response, so that is cached in the first call, and then readily available in the second.

kim wrote: 16 Nov 2020, 21:46 The better way to solve both "all" poster and fanart (the kodi way) is to add the info in the movie.nfo then you can see all in kodi and choose the one you like
Interesting. Do Plex and Emby have comparable features?
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

Re: how to get filebot to download ALL available movie posters?

Post by kim »

"Plex and Emby"

Plex can import Kodi nfo's
Luke (System Architect)
Posted March 6, 2019
Correct we actually follow Kodi conventions on nfo file.
To change the image used, simply click on the cloud underneath each image and the server will search all of the databases for new images.
https://support.emby.media/support/solu ... ta-manager

so I think so BUT not sure
User avatar
rednoah
The Source
Posts: 19130
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to get filebot to download ALL available movie posters?

Post by rednoah »

I guess I'll write a separate script for these kind of use cases. It's on my backlog. I'll see what I can do about it. Might take a week or two though. Extending the NFO makes less sense to me, because the links might get outdated, and any HTPC could get those fresh from the database based on the ID anyway. Having all artwork locally cached for quick-selection does make sense though.
:idea: Please read the FAQ and How to Request Help.
Post Reply