Clear "Rename History"

Any questions? Need some help?
Post Reply
ZaPHoN
Posts: 4
Joined: 22 Sep 2012, 20:55

Clear "Rename History"

Post by ZaPHoN »

I've been trying to figure out how to clear the rename history. Could someone give me some direction please?

OS Ubuntu 11.10
Filebot v3.6.1


Thanks
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Clear "Rename History"

Post by rednoah »

Just delete history.xml in application.dir. On Linux that should be in ~/.filebot. You can delete the whole ~/.filebot if you want.

Here's a filebot script that'll delete the history file:

Code: Select all

filebot -script "g:net.sourceforge.filebot.HistorySpooler.instance.persistentHistoryFile.delete()"
:idea: Please read the FAQ and How to Request Help.
ZaPHoN
Posts: 4
Joined: 22 Sep 2012, 20:55

Re: Clear "Rename History"

Post by ZaPHoN »

Thanks a bunch
phibins
Posts: 20
Joined: 28 Mar 2018, 02:49

Re: Clear "Rename History"

Post by phibins »

rednoah wrote: 24 Jun 2013, 17:20 Here's a filebot script that'll delete the history file:

Code: Select all

filebot -script "g:net.sourceforge.filebot.HistorySpooler.instance.persistentHistoryFile.delete()"
Hey, this no longer works. (I get error : MissingPropertyException: No such property: net)

When I replace "g:net..." with "dev:net..." I get "no such resource".

I looked at your documentation and the github page with all the groovy scripts, and i cannot find a way to delete history.
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Clear "Rename History"

Post by rednoah »

This snippet from 2013 no longer works. You can find the history.xml file and delete it.

You can use this snippet to find the location of the history.xml file:

Code: Select all

filebot -script "g:println net.filebot.HistorySpooler.instance.persistentHistoryFile"
:idea: Please read the FAQ and How to Request Help.
cthulhu5
Posts: 1
Joined: 14 Feb 2019, 22:49

Re: Clear "Rename History"

Post by cthulhu5 »

Code: Select all

find ~/.filebot/ -name history.xml
shows no files for me on macOS. But I was replacing the .filebot dir with a tarball I took when I had a small history, but that apparently got me banned unexpectedly (in fact, I am hoping this message allows me to PM - I am still trying to figure out how to ask for my license back). It's possible I removed the history by accident before making the tarball.
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Clear "Rename History"

Post by rednoah »

The internal history has absolute nothing to do with license activation, and deleting it has no effect on a license that has been flagged by the license activation system.

If you get the License Error: Banned due to abuse error message, please read this:
viewtopic.php?f=4&t=9594
:idea: Please read the FAQ and How to Request Help.
User avatar
sighunter
Posts: 18
Joined: 26 Aug 2016, 08:08

Re: Clear "Rename History"

Post by sighunter »

sorry to revive this old thread but I am investigating a rename problem:
Image
and I believe this is due to the rename history as I have renamed the first 4 files some months ago
(when the thetvdb entry was not yet present)
and I can't find my history.xml to delete. Win10 Store version

the snippet tells me where the file is supposed to be but it's not there
# filebot -script "g:println net.filebot.HistorySpooler.instance.persistentHistoryFile"
C:\Users\me\AppData\Roaming\FileBot\history.xml

How can I do this with Win10 Store version?
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Clear "Rename History"

Post by rednoah »

1.
The rename history has no effect on marching.


2.
See FAQ for details where UWP app data is stored.

Due to UWP file system isolation, certain file paths get redirect, so the file paths FileBot thinks it's using aren't actually the ones being used.
:idea: Please read the FAQ and How to Request Help.
User avatar
sighunter
Posts: 18
Joined: 26 Aug 2016, 08:08

Re: Clear "Rename History"

Post by sighunter »

rednoah wrote: 30 Apr 2019, 15:20 1.
The rename history has no effect on marching.


2.
See FAQ for details where UWP app data is stored.

Due to UWP file system isolation, certain file paths get redirect, so the file paths FileBot thinks it's using aren't actually the ones being used.
thanks for clearing that up, I was not sure if this had even an effect on matching
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Clear "Rename History"

Post by rednoah »

Can you point out why this is incorrect? Looks perfectly reasonable to me.

Image



EDIT:

I see. It's the 2013 vs 2018 thing. If files are already xattr tagged, then you might need to clear xattr first, because xattr to affect matching.
https://www.filebot.net/forums/viewtopic.php?f=3&t=324

:idea: If you use the History to revert files to their original names, then xattr will be cleared as well for these files.
:idea: Please read the FAQ and How to Request Help.
User avatar
sighunter
Posts: 18
Joined: 26 Aug 2016, 08:08

Re: Clear "Rename History"

Post by sighunter »

thanks! this was indeed the cause of my problems:

Code: Select all

# filebot -mediainfo --format "{json}" "D:\Serien\The Romanoffs (2018)\Staffel 1\The Romanoffs (2018) S01E01 [1080p H.264 Web-DL E-AC3 5.1 Eng].mkv"
{"@type":"Episode","seriesName":"The Romanovs","season":1,"episode":1,"title":"The Beginning Of A Dynasty","airdate":{"year":2013,"month":11,"day":4},"id":4719830,"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"en","id":275598,"name":"The Romanovs","aliasNames":["Romanovs","The Romanovs (2013)"],"certification":"TV-14","startDate":{"year":2013,"month":11,"day":4},"genres":["Documentary","Drama"],"network":"?????? ?????","rating":10.0,"ratingCount":2,"runtime":50,"status":"Ended"}}
after I cleared the ntfs alternate streams they all match correctly
Image
Post Reply