miss.groovy

Any questions? Need some help?
Post Reply
User avatar
bonelifer
Power User
Posts: 81
Joined: 23 Mar 2013, 18:27

miss.groovy

Post by bonelifer »

Instead of printing out all the missing episodes, it prints all the one you have.

fn:sysenv:

Code: Select all

# Environment Variables #
=::: ::\
PSModulePath: C:\Users\Owner\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
SystemRoot: C:\Windows
GPOD: C:\Users\Owner\Documents\gPodder\Downloads
hexchat: C:\Users\Owner\AppData\Roaming\HexChat
UD_DISABLE_USAGE_TRACKING: 1
USERNAME: Owner
ComSpec: C:\Windows\system32\cmd.exe
ALLUSERSPROFILE: C:\ProgramData
VS100COMNTOOLS: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
HOSTS: C:\Windows\System32\drivers\etc
TMP: C:\Users\Owner\AppData\Local\Temp
APPDATA: C:\Users\Owner\AppData\Roaming
HOMEDRIVE: C:
PROCESSOR_LEVEL: 16
tvdumpflags: 8
HOMEPATH: \Users\Owner
OS: Windows_NT
CommonProgramW6432: C:\Program Files\Common Files
ChocolateyInstall: C:\Chocolatey
SESSIONNAME: Console
USERDOMAIN: Jeanna
UD_INSTALL_DIR: C:\Program Files\UltraDefrag
ProgramData: C:\ProgramData
MOZ_PLUGIN_PATH: C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\
TEMP: C:\Users\Owner\AppData\Local\Temp
NUMBER_OF_PROCESSORS: 2
COMPUTERNAME: JEANNA
BIN: C:\utils\bin
UHD_PKG_DATA_PATH: C:\Program Files (x86)\UHD\share\uhd
USERPROFILE: C:\Users\Owner
PROCESSOR_ARCHITEW6432: AMD64
PROCESSOR_ARCHITECTURE: x86
HuluDesktopPath: C:\Users\Owner\AppData\Local\HuluDesktop\instances\0.9.14.1\HuluDesktop.exe
__COMPAT_LAYER: RunAsAdmin
VBOX_INSTALL_PATH: C:\Program Files\Oracle\VirtualBox\
MOZPROFILE: C:\Users\Owner\appdata\Local\Mozilla\Firefox\Profiles
LOCALAPPDATA: C:\Users\Owner\AppData\Local
FP_NO_HOST_CHECK: NO
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
CommonProgramFiles: C:\Program Files (x86)\Common Files
Path: C:\Python33\;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\PROGRA~2\KEEPAS~1\;C:\;C:\PROGRA~2\GTK2-R~1\bin;C:\utils\;C:\Progra~1\TrueCrypt\;C:\media-utils;C:\PROGRA~2\OPENIB~1;C:\Python27\;C:\Program Files\TortoiseSVN\bin;C:\PROGRA~1\MIA713~1\Windows\v7.0\Bin;C:\progra~2\Notepad++\;C:\PROGRA~2\ROCKET~1\Themes;C:\PROGRA~2\ROCKET~1\Themes\Tools;C:\PROGRA~2\MKVTOO~1;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre7\bin\;C:\Program Files (x86)\UHD\bin; C:\Progra~2\PuTTY\;C:\Progra~2\GnuWin32\bin;C:\Progra~2\Lynx\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files\SourceGear\Common\DiffMerge\;c:\bin;C:\progra~2\Git\bin;C:\PROGRA~2\QUICKT~1\QTSystem\;C:\utils\GMusic;C:\utils\Console2;C:\progra~2\Handbrake;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\FileBot\;C:\utils\piano;C:\Program Files\TortoiseGit\bin;C:\Chocolatey\bin;;C:\Program Files (x86)\Java\jre7\bin
SystemDrive: C:
PROCESSOR_REVISION: 0602
ProgramW6432: C:\Program Files
ProgramFiles: C:\Program Files (x86)
PYTHONPATH: c:\program files (x86)\gnuradio\lib\site-packages 
ProgramFiles(x86): C:\Program Files (x86)
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_IDENTIFIER: AMD64 Family 16 Model 6 Stepping 2, AuthenticAMD
tcpath: F:\tcrypt
windir: C:\Windows
PUBLIC: C:\Users\Public
LOGONSERVER: \\JEANNA
asl.log: Destination=file
# Java System Properties #
sun.boot.library.path: C:\Program Files (x86)\Java\jre7\bin
ehcache.disk.store.dir: C:\Users\Owner\AppData\Roaming\FileBot\cache\0
java.version: 1.7.0_45
java.vm.name: Java HotSpot(TM) Client VM
java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
java.specification.vendor: Oracle Corporation
os.version: 6.1
sun.os.patch.level: Service Pack 1
os.name: Windows 7
java.specification.name: Java Platform API Specification
user.name: Owner
sun.net.client.defaultConnectTimeout: 10000
sun.java.launcher: SUN_STANDARD
user.dir: C:\Users\Owner\Desktop
java.ext.dirs: C:\Program Files (x86)\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.cpu.endian: little
application.deployment: msi
user.home: C:\Users\Owner
net.filebot.AcoustID.fpcalc: C:\Program Files\FileBot\fpcalc.exe
useCreationDate: false
java.vm.specification.version: 1.7
grape.root: C:\Users\Owner\AppData\Roaming\FileBot\grape
java.endorsed.dirs: C:\Program Files (x86)\Java\jre7\lib\endorsed
application.analytics: true
file.separator: \
sun.desktop: windows
sun.arch.data.model: 32
sun.cpu.isalist: 
java.home: C:\Program Files (x86)\Java\jre7
sun.net.client.defaultReadTimeout: 60000
file.encoding: Cp1252
java.vendor.url: http://java.oracle.com/
sun.management.compiler: HotSpot Client Compiler
java.class.path: C:\Program Files\FileBot\FileBot.jar
user.language: en
java.runtime.name: Java(TM) SE Runtime Environment
java.vm.specification.vendor: Oracle Corporation
java.class.version: 51.0
java.vm.info: mixed mode, sharing
http.agent: FileBot 4.1
file.encoding.pkg: sun.io
swing.crossplatformlaf: javax.swing.plaf.nimbus.NimbusLookAndFeel
java.vendor: Oracle Corporation
sun.jnu.encoding: Cp1252
useExtendedFileAttributes: true
awt.toolkit: sun.awt.windows.WToolkit
user.country: US
jna.boot.library.path: C:\Program Files\FileBot
application.dir: C:\Users\Owner\AppData\Roaming\FileBot
os.arch: x86
user.variant: 
jna.library.path: C:\Program Files\FileBot
sun.boot.class.path: C:\Program Files (x86)\Java\jre7\lib\resources.jar;C:\Program Files (x86)\Java\jre7\lib\rt.jar;C:\Program Files (x86)\Java\jre7\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre7\lib\jsse.jar;C:\Program Files (x86)\Java\jre7\lib\jce.jar;C:\Program Files (x86)\Java\jre7\lib\charsets.jar;C:\Program Files (x86)\Java\jre7\lib\jfr.jar;C:\Program Files (x86)\Java\jre7\classes
sun.io.unicode.encoding: UnicodeLittle
line.separator: 

sun.awt.enableExtraMouseButtons: true
java.net.useSystemProxies: true
java.vm.version: 24.45-b08
java.io.tmpdir: C:\Users\Owner\AppData\Roaming\FileBot\temp
sun.java.command: C:\Program Files\FileBot\FileBot.jar -script fn:sysenv
java.awt.printerjob: sun.awt.windows.WPrinterJob
java.vendor.url.bug: http://bugreport.sun.com/bugreport/
java.vm.specification.name: Java Virtual Machine Specification
java.library.path: C:\Program Files\FileBot
java.runtime.version: 1.7.0_45-b18
java.specification.version: 1.7
path.separator: ;
user.timezone: 
user.script: 
java.vm.vendor: Oracle Corporation
# Arguments #
args[0] = -script
args[1] = fn:sysenv
Done ?(?????)?
Output:

Code: Select all

null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [00x01] - Six Minute Preview.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x01] - Pilot.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x02] - Skin.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x04] - The Bends.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x05] - Blood Brothers.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x06] - Arrhythmia.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x09] - Unbound.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x10] - Perception.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x11] - Disrupt.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x12] - Beholder.mkv
null | null | T:\Videos\TV\Almost Human\Season 01\Almost Human - [01x13] - Straw Man.mkv
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: miss.groovy

Post by rednoah »

miss.groovy only works if files are properly tagged with xattr metadata (i.e. have been sorted by filebot with xattr enabled).

It's just indexing files first and null | null is indicating that files are not tagged, thus ignored.

Turn off log to see only the list of missing epsisodes, which in your case would be empty since nothing is tagged:

Code: Select all

filebot -script fn:miss . --log off
This is how it works:
Image
:idea: Please read the FAQ and How to Request Help.
Animeimp
Posts: 4
Joined: 29 Nov 2014, 01:38

Re: miss.groovy

Post by Animeimp »

On the script miss.groovy, I am using a custom --format on the cli, so that filebot and the script will know the format of my filenames, but it still doesn't seem to be pulling the information needed to do the lookup.

Filename sample: Angel Heart - 01 - Glass Heart [Hi10](ff9ccec8).mkv
Format using: "{n} - {e.pad(2)} - {t} [{group}]({crc32})"
Commandline using: filebot -script fn:miss /anime/sorted/a/test --format "{n} - {e.pad(2)} - {t} [{group}]({crc32})" --log 1

Output:
null | null | Z:\Anime\Sorted\A\test\Angel Heart - 01 - Glass Heart [Hi10](ff9ccec8).mkv
null | null | Z:\Anime\Sorted\A\test\Angel Heart - 02 - Kaori came home [Hi10](10fc3358).mkv
Done ?(?????)?

If I leave off the --format command, I get the exact same output.

Where am I going wrong at?

Thank you in advance!

(Sysinfo)
Z:\Anime\Sorted\A\test>filebot -script fn:sysinfo
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 4 GB Max Memory / 28 MB Used Memory
OS: Windows 7 (amd64)
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: miss.groovy

Post by rednoah »

The miss script only works if files have already been tagged with xattr metadata. Files will be tagged after renaming them with FileBot. The format doesn't matter.

The null | null indicates that this file has not been xattr tagged by filebot:

Code: Select all

null | null | /path/to/file
If this is a file that has in fact previously been renamed with FileBot then I guess your drive Z:/ is some kind of external storage which doesn't support xattr metadata. The miss script will not work in this case.
:idea: Please read the FAQ and How to Request Help.
Animeimp
Posts: 4
Joined: 29 Nov 2014, 01:38

Re: miss.groovy

Post by Animeimp »

Thank you. It is a Synology DS 1512+ with Filebot installed on it, but the data may have been lost when the files were moved to the drive.
Now to get all set again.
Post Reply