use partial file name instead of full path?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
zaithefirst
Posts: 11
Joined: 04 Mar 2013, 21:08

use partial file name instead of full path?

Post by zaithefirst »

Hi,
I'm using the sortivo.groovy script. I suck at Groovy and I have a problem.
I store my videos under
/volume1/temp/downloads
And using the full file name is creating a problem. filebot uses "temp" to match for video titles as in the following examples:

Auto-detect movie from context: [/volume1/temp/downloads/befree-werewolfboy.avi]
[MOVE] Rename [/volume1/temp/downloads/befree-werewolfboy.avi] to [/volume1/video/movies/The Temp_(2010)__IMDB().avi]

How can I update the script so that it uses the file name and not the whole file path?

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

Re: use partial file name instead of full path?

Post by rednoah »

You can't but I can. :P

I'll add it to the global blacklist later today:
http://filebot.sourceforge.net/forums/v ... ?f=3&t=359

Not sure if that'll fix it though, may or may not. "A Werewolf Boy" is the official name, and search can be sensitive words. The reason it went for "Temp" as movie name is because it couldn't make sense of "werewolfboy" which according to the db search doesn't exist.

EDIT: r1505 improves support for mangled names like this.
:idea: Please read the FAQ and How to Request Help.
zaithefirst
Posts: 11
Joined: 04 Mar 2013, 21:08

Re: use partial file name instead of full path?

Post by zaithefirst »

Thanks a lot for the quick reply and speed in correction.
You have a great software.
However, a small question, I'm using the synology filebot package, which I'm assuming wasn't updated with your fix?
Thanks again
User avatar
rednoah
The Source
Posts: 23051
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: use partial file name instead of full path?

Post by rednoah »

I don't maintain the spk so it's probably a outdated. You can try filebot -version to check. You can update manually by replacing the jar.
:idea: Please read the FAQ and How to Request Help.
zaithefirst
Posts: 11
Joined: 04 Mar 2013, 21:08

Re: use partial file name instead of full path?

Post by zaithefirst »

Well, I just did as you suggested by replacing the jar file and it worked like a charm.
Thanks a lot for you help in this matter. Filebot rocks :):)
zaithefirst
Posts: 11
Joined: 04 Mar 2013, 21:08

Re: use partial file name instead of full path?

Post by zaithefirst »

one question though, I downloaded the filebot version: FileBot 3.4 (r1467)
You mentionned a higher release number in your correction. When will this jar be available for download?
Thanks
User avatar
rednoah
The Source
Posts: 23051
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: use partial file name instead of full path?

Post by rednoah »

Check FAQ ;)
:idea: Please read the FAQ and How to Request Help.
zaithefirst
Posts: 11
Joined: 04 Mar 2013, 21:08

Re: use partial file name instead of full path?

Post by zaithefirst »

Hi,

I have the same problem with the new version (3.8). I've just downloaded the new version and here is what I get in output:
Awkward.S03E19.mp4 [series: temp, movie: null]

As a quick reminder, my files are stored in a directory "/volume1/temp/downloads". You did previously sort this error by making an update in r1505. Can you please help?

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

Re: use partial file name instead of full path?

Post by rednoah »

Try the latest HEAD revision then. Works for me:

Code: Select all

Argument: D:\workspace\testdata\AMC-TEST
Input: D:\workspace\testdata\AMC-TEST\volume1\temp\downloads\Awkward.S03E19.mp4
Group: [tvs:awkward] => [Awkward.S03E19.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Awkward]
Fetching episode data for [Awkward.]
Fetching episode data for [Awkward Embraces]
Stripping invalid characters from new path: TV Shows/Awkward./Season 03/Awkward. - S03E19 - Karmic Relief
[COPY] Rename [D:\workspace\testdata\AMC-TEST\volume1\temp\downloads\Awkward.S03E19.mp4] to [D:\workspace\output\TV Shows\Awkward\Season 03\Awkward. - S03E19 - Karmic Relief.mp4]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
:idea: Please read the FAQ and How to Request Help.
Post Reply