Page 1 of 1

Artwork Rename

Posted: 16 Jan 2025, 20:47
by themusj
I know Filebot can rename TV episodes and .nfo files. Can it rename the artwork to match the episodes?

Specifically the thumbnails, posters and fanart?

I use Kodi and need to keep the dash in those filenames. Ie. Monk S01E01-poster.

Right now when TVDB updates a TV show, I get my mpg and .nfo renamed, but not artwork.

Re: Artwork Rename

Posted: 17 Jan 2025, 04:51
by rednoah
:?: How are your files currently named?


:arrow: Please post sample file paths as text.


:idea: Please read the Companion Files manual for general information on how to deal with extras and other kinds of companion files.

Re: Artwork Rename

Posted: 04 Feb 2025, 12:53
by themusj
Please forgive me if I ask for clarification. I know this should be easy to grasp and comprehend.

Yesterday I had a movie needing the mpg file, nfo file and -thumb.jpg file needing to be renamed.

Filebot renamed all three files with the movie name as expected. But it dropped off the -thumb from the jpg file.

I imagine it would do the same with -poster.

I've read the posts several times now and shaking my head trying to see by the posts what I need to do. Something about {ny} but that just means name and year I believe.}

Can you just list the syntax? It would seem this would be an easy thing to do when I have seen much more complicated syntax.

Most grateful for any help.

Re: Artwork Rename

Posted: 04 Feb 2025, 13:16
by rednoah
:?: Does this look like the use case at hand?
rednoah wrote: 09 Oct 2020, 04:36 e.g. using a custom format that matches trailing patterns such as -poster from the current file name:

Format: Select all

{ ny }{ '.' + fn.match(/-([a-z]+)$/) }

Console Output: Select all

Avatar.mp4
Avatar.info.xml
Avatar.poster.jpg
Avatar.description.txt
Screenshot


themusj wrote: 04 Feb 2025, 12:53 Yesterday I had a movie needing the mpg file, nfo file and -thumb.jpg file needing to be renamed.
:arrow: Please post sample file paths as text.

Re: Artwork Rename

Posted: 04 Feb 2025, 15:18
by themusj
Except in my case I need dash instead of a period for the jpeg file.

Avatar.mpg
Avatar.nfo
Avatar-thumb.jpg
Avatar-poster.jpg

Or take a TV show episode (made up)

Chuck S01E03 - Cat and mouse.mpg
Chuck S01E03 - Cat and mouse.nfo
Chuck S01E03 - Cat and mouse-thumb.jpg
Chuck S01E03 - Cat and mouse-poster.jpg

Needs to change due TVDB change (made up example)

Chuck S01E03 - Cat and mice.mpg
Chuck S01E03 - Cat and mouse.nfo
Chuck S01E03 - Cat and mouse-thumb.jpg
Chuck S01E03 - Cat and mouse-poster.jpg

I need Filebot not to truncate -poster and -thumb from the filenames.

Re: Artwork Rename

Posted: 04 Feb 2025, 15:21
by themusj
In the last example mouse should be mice.

Chuck S01E03 - Cat and mice.nfo
Chuck S01E03 - Cat and mice-thumb.jpg
Chuck S01E03 - Cat and mice-poster.jpg

Re: Artwork Rename

Posted: 04 Feb 2025, 16:26
by rednoah
:?: What is the format you currently have?

:?: What happens if you add this snippet (using - instead of . as separator) from the example above to your format?

Format: Select all

{ '-' + fn.match(/-([a-z]+)$/) }
NOTE: This code will copy & paste the -thumb bit from the current file path into the proposed target file path.

Re: Artwork Rename

Posted: 04 Feb 2025, 22:30
by themusj
Both are set as the default settings.

Movies
{n.colon(' - ')} ({y}){' CD'+pi}{subt}

TV Show Episodes
{n} - {s00e00} - {t}

Re: Artwork Rename

Posted: 05 Feb 2025, 03:03
by rednoah
rednoah wrote: 04 Feb 2025, 16:26 :?: What happens if you add this snippet (using - instead of . as separator) from the example above to your format?

Format: Select all

{ '-' + fn.match(/-([a-z]+)$/) }
NOTE: This code will copy & paste the -thumb bit from the current file path into the proposed target file path.
If you want your format to add the -thumb bit, then you need to add the code that does that. It's just copy & paste from the Companion Files manual.


e.g. movie format

Format: Select all

{n.colon(' - ')} ({y}){' CD'+pi}{ '-' + fn.match(/-([a-z]+)$/) }{subt}
e.g. episode format

Format: Select all

{n} - {s00e00} - {t}{ '-' + fn.match(/-([a-z]+)$/) }

Re: Artwork Rename

Posted: 05 Feb 2025, 13:21
by themusj
Thank you I'll give this a real try with my next recorded files coming up.