Search found 142 matches

by jprokos
02 Apr 2021, 17:31
Forum: Scripting and Automation
Topic: history script --format option not working
Replies: 3
Views: 1149

Re: history script --format option not working

Thank you. That takes a long time to run with 34,000 lines of history. I don't think basename is meant to be run that way? real 0m22.386s user 0m11.157s sys 0m14.146s The following gets me what I want in a readable format. (On macOS it requires GNU sed / gsed ). I am open to a better/faster/simpler ...
by jprokos
01 Apr 2021, 19:33
Forum: Scripting and Automation
Topic: history script --format option not working
Replies: 3
Views: 1149

history script --format option not working

Description: FileBot keeps an internal history of all rename operations in case you want to revert files to their original names or just want to find out the original name of a given file. Here's a script to help with that. Print old and new names in rows for easy comparison: filebot -script fn:his...
by jprokos
29 Mar 2021, 04:25
Forum: macOS
Topic: Where does FileBot store the "Copy to" directory string?
Replies: 8
Views: 2942

Re: Where does FileBot store the "Copy to" directory string?

Here's what the call stack would look like: 1. qBT calls your qBT_e-program.sh 1.1. qBT_e-program.sh calls filebot 1.1.1. filebot -exec calls your delete-srt-files.sh passing along the destination {folder} as Argument $1 1.1.1.1. delete-srt-files.sh calls find "$1" ... e.g. -exec /path/to/delete-sr...
by jprokos
11 Mar 2021, 04:28
Forum: macOS
Topic: Where does FileBot store the "Copy to" directory string?
Replies: 8
Views: 2942

Re: Where does FileBot store the "Copy to" directory string?

Thank you. The test worked. The script was called and there was output in my txt log. #!/bin/bash #find "$1" >> ~/Desktop/SsubDeletetest.txt /Volumes/SeedDrive/PlexServer_2/TV Shows/Last Week Tonight with John Oliver/Season 08 /Volumes/SeedDrive/PlexServer_2/TV Shows/Last Week Tonight with John Oliv...
by jprokos
06 Mar 2021, 18:30
Forum: macOS
Topic: Where does FileBot store the "Copy to" directory string?
Replies: 8
Views: 2942

Re: Where does FileBot store the "Copy to" directory string?

:D It takes me hours and sometimes days to figure this stuff out... and that's with your help. My torrent client is set up to run a shell script which contains my filebot commands. My "on torrent completion run external program" commands in the client are: /Users/john/.filebot/scripts/qBT_e-program....
by jprokos
06 Mar 2021, 07:22
Forum: macOS
Topic: Where does FileBot store the "Copy to" directory string?
Replies: 8
Views: 2942

Re: Where does FileBot store the "Copy to" directory string?

Thanks for the speedy response. Sorry, I wasn't clear. Let's say AMC script has done its job and found a match and knows what the new directory name will be. Is that something that I can use after it has Copied? First my shell script runs filebot fn:amc Next it runs another command to find non-engli...
by jprokos
06 Mar 2021, 07:05
Forum: macOS
Topic: Where does FileBot store the "Copy to" directory string?
Replies: 8
Views: 2942

Where does FileBot store the "Copy to" directory string?

I am running the AMC script. Before a file is COPY from [/path/to/original/file] to [/path/to/renamed/file] is that final destination path stored in an argument that I can use? :?: Do I have access to the argument containing the name of the directory where it will be stored after FileBot has decided...
by jprokos
21 Feb 2021, 05:52
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

Thanks Red. I will give that a shot tomorrow. I did open an "issue" on qBT's github page regarding this. I am posting what is working now for qBittorrent 4.3.3 "run external program" shell script. :idea: One site I found helpful for checking validity of shell scripts: https://www.shellcheck.net. The...
by jprokos
20 Feb 2021, 17:41
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

You'll want to call the sysenv script from qBT so that you can see the arguments that are passed along: filebot -script fn:sysenv --log-file sysenv.log "%N" "%L" "%G" "%F" "%R" "%D" "%C" "%Z" "%T" "%I" That gave us stuff... but not everything that we asked for — "%G" "%F" "%R" "%D" are missing and ...
by jprokos
20 Feb 2021, 08:45
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

Thanks for the explanation. I did as you said. This is what I have in run external program in qbt: /Users/john/Documents/Shell_Scripts/qBttorrent_e-program.sh "%N" "%L" "%G" "%F" "%R" "%D" "%C" "%Z" "%T" "%I" This is my altered bash script: #!/bin/sh /usr/local/bin/filebot -script fn:amc --output "/...
by jprokos
20 Feb 2021, 06:42
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

Well, I'd start by checking what exact command qBT is trying to execute in cases that don't work as expected. There should be a log somewhere. Only qBT knows how %variable replacement logic works exactly, and if there's any special handling for "%variables" syntax. As for empty positional arguments...
by jprokos
20 Feb 2021, 02:38
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

1. Empty positional arguments should work though: ./test.sh "" "X" $1 = $2 = X 2. If you're using qBT then you can just hard-code --def ut_kind=multi and leave it at that. The option is only required for interpreting uT argument values. I opened an issue because I didn't get a response in any qbt f...
by jprokos
19 Feb 2021, 15:54
Forum: macOS
Topic: Updated to 4.9.3 using homebrew - getting media info error
Replies: 5
Views: 2186

Re: Updated to 4.9.3 using homebrew - getting media info error

I downgraded to 4.9.2 and upgraded to 4.9.3 to test and provide you with logs. Hope something in here is useful. The very last example is what I receive whenever I start filebot. FileBot 4.9.2 (r8046) JNA Native: 6.1.0 MediaInfo: 20.08 7-Zip-JBinding: 16.02 Tools: fpcalc/1.5.0 mkvpropedit/53.0.0 Ext...
by jprokos
19 Feb 2021, 07:14
Forum: macOS
Topic: Updated to 4.9.3 using homebrew - getting media info error
Replies: 5
Views: 2186

Re: Updated to 4.9.3 using homebrew - getting media info error

EDIT: I am using Catalina 10.15.7 Wow, this version boots up much faster than previously. Thanks for that. I uninstalled the homebrew installed app and downloaded the package from filebot.net. Looked in Groovy Pad and things look right... FileBot 4.9.3 (r8335) JNA Native: 6.1.0 MediaInfo: 20.09 7-Zi...
by jprokos
19 Feb 2021, 05:45
Forum: macOS
Topic: Updated to 4.9.3 using homebrew - getting media info error
Replies: 5
Views: 2186

Updated to 4.9.3 using homebrew - getting media info error

Hi Red, :?: I don't see a command for "reset cache" in filebot -help . I assume this means filebot -clear-cache Feb 18, 2021 11:20:57 AM net.filebot.DiskStore acquireDiskStore WARNING: Current application revision (r8335) does not match cache revision (r8046): reset cache Feb 18, 2021 11:20:57 AM ne...
by jprokos
17 Feb 2021, 17:26
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

Thanks Red! Uhh, I know what 420 means but not "402". Hope it's not the mark of the devil. :evil: I used your hint to solve the issue! I will elaborate here. Hope this helps others on macOS Catalina using qBittorrent 4.3.3 I replaced my filebot code at " Run external program on torrent completion " ...
by jprokos
17 Feb 2021, 06:58
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Re: Hint needed for calling bash script upon torrent completion

It looks like I an do this in qbittorrent? /Users/john/Documents/Shell_Scripts/MyFileBot_Script.sh "%N" "%L" "%G" "%F" "%R" "%D" "%C" "%Z" "%T" "%I" Now inside my shell script how do I define those? Right now the shell script looks like this: filebot -script fn:amc --output "/Volumes" \ --action dup...
by jprokos
17 Feb 2021, 05:20
Forum: macOS
Topic: Hint needed for calling bash script upon torrent completion
Replies: 13
Views: 3950

Hint needed for calling bash script upon torrent completion

I have looked around the site for a hint on how to do this. I know it must exist. Until now I have had all of my filebot commands inside the qBittorrent " run external program on torrent completion " window. It's quite long and I thought I would just try to call a shell script instead. I realized th...
by jprokos
23 Dec 2020, 21:56
Forum: Episode / Movie Naming Scheme
Topic: TV Series Cosmos.1980 unexpected Mismatch
Replies: 5
Views: 3951

Re: TV Series Cosmos.1980 unexpected Mismatch

Sorry, I don't understand what your CLI commands do, how they work, or what they prove. The command above shows that FileBot can rename the given file out-of-the-box, at least in my test case. Your response should be running the exact same command on the exact same file, to confirm that you indeed ...
by jprokos
22 Dec 2020, 21:50
Forum: Episode / Movie Naming Scheme
Topic: TV Series Cosmos.1980 unexpected Mismatch
Replies: 5
Views: 3951

Re: TV Series Cosmos.1980 unexpected Mismatch

Perhaps it's because I'm using the latest revision. Perhaps because I'm testing with a new clean file structure, no xattr, nfo files, etc. Perhaps something else entirely. Maybe you can do some trial and error testing to see what works and what doesn't. Thank you. Sorry, I don't understand what you...
by jprokos
22 Dec 2020, 01:16
Forum: Episode / Movie Naming Scheme
Topic: TV Series Cosmos.1980 unexpected Mismatch
Replies: 5
Views: 3951

TV Series Cosmos.1980 unexpected Mismatch

Odd mismatch when using fn:amc and defining a seriesFormat . Using strict mode in the GUI did initially pull up a window to choose the series, but upon attempting it a second there is no renaming activity at all. After that the only way is to move into opportunistic mode where the top hit is the cor...
by jprokos
30 Nov 2020, 19:22
Forum: Feature Requests and Bug Reports
Topic: BBC Documentaries
Replies: 9
Views: 7036

Re: BBC Documentaries

The auto-completion in Episodes panel is based on all known titles. In this case, BBC Documentaires is the French title . Regardless of which alias title you select, all of them will boil down to the same numeric series identifier. Thanks for your response. :?: I assumed as much, but have you tried...
by jprokos
29 Nov 2020, 06:43
Forum: Feature Requests and Bug Reports
Topic: BBC Documentaries
Replies: 9
Views: 7036

Re: BBC Documentaries

I added more above. It's a database issue at TMDB. Guess I will need to mention that it needs to be repaired there. I would rather not have to switch my preset back and forth between TMDB:TV and TVDB for specific titles. :!: In any case. I am still curious where the misspelling comes from in the Epi...
by jprokos
29 Nov 2020, 06:31
Forum: Feature Requests and Bug Reports
Topic: BBC Documentaries
Replies: 9
Views: 7036

Re: BBC Documentaries

Clicking on "BBC Documentaries" that is found in the Episodes panel shows 8 episodes and the link is: https://www.themoviedb.org/tv/113848-bbc-documentaries https://www.themoviedb.org/tv/113848-bbc-documentaries/seasons It's a database issue at TMDB. I am still curious where the misspelling comes fr...
by jprokos
29 Nov 2020, 06:26
Forum: Feature Requests and Bug Reports
Topic: BBC Documentaries
Replies: 9
Views: 7036

Re: BBC Documentaries

Yes, I did that. It only shows 2020. EDIT Now I am getting (with All Seasons selected): BBC Documentaries - 20100603 - Little Ships: The Miracle of Dunkirk BBC Documentaries - 20110613 - World War Two: 1941 and the Man of Steel BBC Documentaries - 20111101 - The Most Courageous Raid of WWII BBC Docu...