Page 1 of 1

{source} not yielding expected results

Posted: 31 Oct 2017, 18:02
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!

Re: {source} not yielding expected results

Posted: 31 Oct 2017, 22:13
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

Re: {source} not yielding expected results

Posted: 01 Nov 2017, 02:00
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

Re: {source} not yielding expected results

Posted: 01 Nov 2017, 02:25
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.