Ignore Torrent Via Category (Don't Move to Unsorted)

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
alexander_q
Posts: 21
Joined: 19 Aug 2014, 02:02

Ignore Torrent Via Category (Don't Move to Unsorted)

Post by alexander_q »

Running Filebot 4.7.2 with qBittorrent 3.3.7.

Below is my script:

Code: Select all

"C:/Program Files/FileBot/filebot.launcher.exe" -script fn:amc --output "V:" --log-file amc.log --action move --conflict override -non-strict --def "ut_label=%L" music=n artwork=n clean=y unsorted=y reportError=y "seriesFormat=V:/_TV Shows/{n}/{'Season '+s}/{fn}" "movieFormat=V:/_Movies/{n} ({y})/{fn}" excludeList=amc.txt "%F"
It was my understanding that I could have certain torrents ignored by amc by having ut_label be "other". I've attempted to do that by changing the qBittorrent category to "other" for a few torrents as an experiment.

Below is the sort of result I'm getting:

Code: Select all

Run script [fn:amc] at [Wed Oct 12 17:02:49 ACDT 2016]
Parameter: ut_label = other
Parameter: music = n
Parameter: artwork = n
Parameter: clean = y
Parameter: unsorted = y
Parameter: reportError = y
Parameter: seriesFormat = V:/_TV Shows/{n}/{'Season '+s}/{fn}
Parameter: movieFormat = V:/_Movies/{n} ({y})/{fn}
Parameter: excludeList = amc.txt
Argument: V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]
Using excludes: V:\amc.txt (14)
Input: V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4
Exclude: V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]\WWW.YTS.AG.jpg
Group: [:] => [The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4]
Processing 1 unsorted files
[MOVE] Rename [V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4] to [V:\Unsorted\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4]
[MOVE] Failed to rename [V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4]
Processed 0 files
V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4 -> V:\Unsorted\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4: The process cannot access the file because it is being used by another process.

java.nio.file.FileSystemException: V:\_qBittorrent\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4 -> V:\Unsorted\The Evil In Us (2016) [1080p] [YTS.AG]\The.Evil.In.Us.2016.1080p.BluRay.x264-[YTS.AG].mp4: The process cannot access the file because it is being used by another process.

	at net.filebot.util.FileUtilities.moveRename(FileUtilities.java:79)
	at net.filebot.StandardRenameAction$1.rename(StandardRenameAction.java:17)
	at net.filebot.cli.CmdlineOperations.renameAll(CmdlineOperations.java:625)
	at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:155)
	at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:333)
	at Script1.run(Script1.groovy:447)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:120)
Clean clutter files and empty folders
Finished without processing any files
Failure (°_°)
A few questions...
  1. Does "processing 1 unsorted files" suggest that I've been successful using the "other" to make filebot not attempt the usual queries?
  2. Is there a way to have filebot ignore the torrent completely rather than move it to unsorted?
  3. In regards to "The process cannot access the file because it is being used by another process"... I use "--action move" which can sometimes cause these sorts of problems. I'm getting this consistently on the "other" label torrents though. Is this likely because there is just less time between the torrent finishing and filebot attempting the move (whereas before there was a wait time for the TVDB query)?
Here is my sysinfo

Code: Select all

FileBot 4.7.2 (r4178)
JNA Native: 4.0.1
MediaInfo: 0.7.78
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-10-08 (r408)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_91
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 22 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
Data: C:\Users\alexander_q\AppData\Roaming\FileBot
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore Torrent Via Category (Don't Move to Unsorted)

Post by rednoah »

--def ut_label=other means that files will be ignored during auto-detection, which means they get picked up by the --def unsorted=y behaviour.

Set --def unsorted=n if you want to fully ignore other content.
:idea: Please read the FAQ and How to Request Help.
User avatar
alexander_q
Posts: 21
Joined: 19 Aug 2014, 02:02

Re: Ignore Torrent Via Category (Don't Move to Unsorted)

Post by alexander_q »

Is there a way to accomplish both? I want normal content that fails to get matched to use unsorted behaviour, while items labelled "other" are ignored completely
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore Torrent Via Category (Don't Move to Unsorted)

Post by rednoah »

Yes. Pass in only the files you want to process instead of all files.

@see How to process only specific kinds of files? Option 4

PS: You basically want to not call the amc script for "other" content. The amc script doesn't support that. But you can write your own shell script in 2-3 lines.
:idea: Please read the FAQ and How to Request Help.
Post Reply