{source} not yielding expected results

Any questions? Need some help?
Post Reply
Cutha
Posts: 13
Joined: 21 Aug 2017, 09:16

{source} not yielding expected results

Post by Cutha »

Hi,

I have been very happy with FileBot and I have used it to rename tons of movies and tv shows. Unfortunately I discovered today that there is a problem with the way I thought {source} works and I have made a mess of my library.

Using the gui (4.7.12), using this simple preset as an example: {fn} - {source}

Original File
Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA

Expected Result
Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA - WEB-DL

Actual Result
Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA - WEBRip


1) Why is {source} not giving me the expected result?

2) Is there a way to export the renaming history to something like a csv file? How/where does it store the history?

Thanks for your time!
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {source} not yielding expected results

Post by rednoah »

1.
{source} uses pattern matching of the file and folder name. It may also be using the original file name as stored in xattr when renaming files with FileBot for the first time, so the value WEBRip is probably based on the original name of that file.

@see viewtopic.php?f=3&t=324#p27518


2.
You can export the history as TSV files like so:

Code: Select all

filebot -script fn:history > history.tsv
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: {source} not yielding expected results

Post by kim »

I tried "WEBRip" in the parent folder name and...
{fn} - {source}
Original File
Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA
"WEBRip/Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA"

and I also get:
Actual Result
Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA - WEBRip
I think this is wrong that the folder "source" is used over the file "source"

It should be something like xattr, file and then folder
Cutha
Posts: 13
Joined: 21 Aug 2017, 09:16

Re: {source} not yielding expected results

Post by Cutha »

Thanks for the help and information. I appreciate the quick response.

The folder name and file name do not match.

This is the folder and file created when it was downloaded:
..\Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEBRip.DDP2.0.x264-SiGMA\Robin.Williams.Weapons.of.Self.Destruction.2009.1080p.AMZN.WEB-DL.DD+2.0.x264-SiGMA.mkv

I looked through some of my yet to be sorted media and there are several instances of this. Good times.
Post Reply