Can Filebot get correct filename from somewhere else if the downloaded filename is wrong

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
xuewy
Posts: 13
Joined: 06 Mar 2019, 14:06

Can Filebot get correct filename from somewhere else if the downloaded filename is wrong

Post by xuewy »

For example, if the media file name should be "Avatar 2009" , but the file I downloaded is totally different like "Star Wars 2008“, can Filebot use some way to get the correct filename, e.g using -mediainfo, not sure if some parameters contain the orginal file info or description.
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can Filebot get correct filename from somewhere else if the downloaded filename is wrong

Post by rednoah »

There might be. You can check:
viewtopic.php?f=5&t=4285

If you're lucky, assuming that the file in question contains embedded metadata, with the media title property set, then this should work:

Code: Select all

{mediaTitle}
:idea: Please read the FAQ and How to Request Help.
xuewy
Posts: 13
Joined: 06 Mar 2019, 14:06

Re: Can Filebot get correct filename from somewhere else if the downloaded filename is wrong

Post by xuewy »

Do you mean to use command below:

Code: Select all

filebot -mediainfo . --format {mediaTitle}
Tried some files, it's not working, result returned as below:

Code: Select all

Expression yields empty value: Binding "General[0][Title, Movie]": undefined
It seems that media title property not set or not choose the right media parameter.
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can Filebot get correct filename from somewhere else if the downloaded filename is wrong

Post by rednoah »

Probably out of luck then, if the file just doesn't contain the information we want.

You can double-check via the MediaInfo Inspector and see all properties:
viewtopic.php?f=5&t=4285
:idea: Please read the FAQ and How to Request Help.
Post Reply