It's a pretty simple config for this. So, you set up your config which is basically saying where you want the files saved and what name you want them saved as. Then running the command to get the image that you want.
As an example, here is a part of my config file
#Use this path for testing
#download_location => '$DESKTOP/mcutils_data/fanart_images',
#Use this path for production
download_location => '[FanartPath]',
movies => {
# default max number of movie category images
max_images => 1,
categories => {
hdmovieclearart => {
# overrides default max_images above for this category
# max_images => 3,
# overrides the name of this image download name to "movie_hdca"
name => 'clearart',
},
hdmovielogo => {
name => 'logo',
},
movieart => {
name => 'fanart',
},
moviebackground => {
name => 'landscape',
},
moviebanner => {
name => 'banner',
},
movielogo => {
name => 'logo2',
},
movieposter => {
name => 'poster',
},
moviethumb => { },
name => 'thumb',
},
},
tv => {
# default max number of tv category images
max_images => 1,
categories => {
seasonthumb => { },
hdtvlogo => {
name => 'logo',
},
That [FanartPath] field up above is a custom field the I created that saves the images into the correct folder for my setup. It has this value:
regex([Filename (path)], /#(^[^\\]+?\\[^\\]+?\\)#/,-1,0)[R1]
Mine is more complicated than necessary, MrC simplified things after I had made that. You can now tell the script where you want things stored for movies and TV separately, my custom field works for both movies and TV.
After your config is setup then you just run commands like these
pscriptor fanarttv --image hdtvlogo --type tv -VV
pscriptor fanarttv --image hdmovielogo --type movie -VV
pscriptor fanarttv --image movieposter --type movie -VV
Something new with this script you can substitute the type with "fromsubtype" which will use the Media Sub Type to determine if your file is a movie or TV show. This allows you to select both movie and TV shows at the same time and then you can run something like this
pscriptor fanarttv --image moviebanner --image tvbanner:3 -FF type fromsubtype
Which will pull down however many moviebanners you've set in your config for any movie files selected and pull down 3 tvbanners for any TV shows selected.