Page 1 of 1

filebot -script fn:miss --log off doesn't work since latest update

Posted: 06 Apr 2020, 15:59
by Predator2912
Hello,

first the Sysinfo:

Code: Select all

filebot -script 'fn:sysinfo' --log-file '/usr/local/filebot-node/data/filebot.log'

------------------------------------------

FileBot 4.9.0 (r7234)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-03-16 (r625)
Groovy: 3.0.2
JRE: OpenJDK Runtime Environment 13.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 2.1 GB Max Memory / 60 MB Used Memory
OS: Linux (amd64)
HW: Linux MadM4x-NAS 3.10.105 #24922 SMP Wed Jul 3 16:34:56 CST 2019 x86_64 GNU/Linux synology_braswell_916+
DATA: /volume1/@appstore/filebot/data/admin
Package: SPK
License: FileBot License ******** (Valid-Until: 2020-10-08)
Done ヾ(@⌒ー⌒@)ノ

------------------------------------------
Since the last update to the latest version of filebot the under cli: filebot -script fn:miss --log off doesn't seem to work properly.

If i enter "filebot -script fn:miss --log off /path/path_to_files" it does not deliver any results or something else.

root@MadM4x-NAS:~# filebot -script fn:miss --log off /volume3/TV\ Serien/ /volume6/TV\ Serien_TWO/
root@MadM4x-NAS:~#

and without --log off filebot terminates with the following message.

Code: Select all

TheTVDB::153021 | The Walking Dead - 8x16 - Zorn | /volume6/TV Serien_TWO/The Walking Dead (2010)/Season 08/The Walking Dead (2010) - S08E16 - Zorn_[1920x1080p]_[1080p_AVC__6ch].mkv
Invalid Lookup: {data={id=305406, seriesId=, seriesName=null, aliases=[Ljava.lang.Object;@6818fd48, season=1, poster=posters/305406-1.jpg, banner=, fanart=fanart/original/305406-2.jpg, status=Ended, firstAired=2016-01-07, network=TF1, networkId=264, runtime=60, language=en, genre=[Ljava.lang.Object;@9263c54, overview=null, lastUpdated=1580343668, airsDayOfWeek=, airsTime=, rating=null, imdbId=tt5254260, zap2itId=, added=2016-01-04 12:36:45, addedBy=4517, siteRating=8, siteRatingCount=56, slug=305406}} [305406]
net.filebot.web.LookupException: Invalid Lookup: {data={id=305406, seriesId=, seriesName=null, aliases=[Ljava.lang.Object;@6818fd48, season=1, poster=posters/305406-1.jpg, banner=, fanart=fanart/original/305406-2.jpg, status=Ended, firstAired=2016-01-07, network=TF1, networkId=264, runtime=60, language=en, genre=[Ljava.lang.Object;@9263c54, overview=null, lastUpdated=1580343668, airsDayOfWeek=, airsTime=, rating=null, imdbId=tt5254260, zap2itId=, added=2016-01-04 12:36:45, addedBy=4517, siteRating=8, siteRatingCount=56, slug=305406}} [305406]
	at net.filebot.web.TheTVDBClient.getSeriesInfo(Unknown Source)
	at net.filebot.web.TheTVDBClient.fetchSeriesData(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.lambda$getSeriesData$1(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIf(Unknown Source)
	at net.filebot.Cache.computeIfAbsent(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIfAbsent(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.getSeriesData(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.getEpisodeList(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.getEpisodeList(Unknown Source)
	at net.filebot.web.EpisodeListProvider$getEpisodeList.call(Unknown Source)
	at Script1$_run_closure5.doCall(Script1.groovy:34)
	at jdk.internal.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.run(Script1.groovy:33)
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)

Error (o_O)
root@MadM4x-NAS:~# 
The same happens if i used/search on one volume/path

Code: Select all

TheTVDB::328724 | Young Sheldon - 2x22 - Köttbullar, Neutrinos und Tai Chi auf dem Dach | /volume3/TV Serien/Young Sheldon (2017)/Season 02/Young Sheldon (2017) - S02E22 - Köttbullar, Neutrinos und Tai Chi auf dem Dach_[TVS-1920x1080p]_[1080p_AVC_AmazonHD_6ch].mkv
Invalid Lookup: {data={id=305406, seriesId=, seriesName=null, aliases=[Ljava.lang.Object;@15369d73, season=1, poster=posters/305406-1.jpg, banner=, fanart=fanart/original/305406-2.jpg, status=Ended, firstAired=2016-01-07, network=TF1, networkId=264, runtime=60, language=en, genre=[Ljava.lang.Object;@1cde374, overview=null, lastUpdated=1580343668, airsDayOfWeek=, airsTime=, rating=null, imdbId=tt5254260, zap2itId=, added=2016-01-04 12:36:45, addedBy=4517, siteRating=8, siteRatingCount=56, slug=305406}} [305406]
net.filebot.web.LookupException: Invalid Lookup: {data={id=305406, seriesId=, seriesName=null, aliases=[Ljava.lang.Object;@15369d73, season=1, poster=posters/305406-1.jpg, banner=, fanart=fanart/original/305406-2.jpg, status=Ended, firstAired=2016-01-07, network=TF1, networkId=264, runtime=60, language=en, genre=[Ljava.lang.Object;@1cde374, overview=null, lastUpdated=1580343668, airsDayOfWeek=, airsTime=, rating=null, imdbId=tt5254260, zap2itId=, added=2016-01-04 12:36:45, addedBy=4517, siteRating=8, siteRatingCount=56, slug=305406}} [305406]
	at net.filebot.web.TheTVDBClient.getSeriesInfo(Unknown Source)
	at net.filebot.web.TheTVDBClient.fetchSeriesData(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.lambda$getSeriesData$1(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIf(Unknown Source)
	at net.filebot.Cache.computeIfAbsent(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIfAbsent(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.getSeriesData(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.getEpisodeList(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.getEpisodeList(Unknown Source)
	at net.filebot.web.EpisodeListProvider$getEpisodeList.call(Unknown Source)
	at Script1$_run_closure5.doCall(Script1.groovy:34)
	at jdk.internal.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.run(Script1.groovy:33)
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)

Error (o_O)
root@MadM4x-NAS:~# 
Any idea what happens or how I can fix it?


Best regards from Germany

Re: filebot -script fn:miss --log off doesn't work since latest update

Posted: 06 Apr 2020, 16:11
by rednoah
You have a file that is tagged with xattr metadata for TheTVDB::305406 which no longer exists in the database. If you remove the offending file (or at least the xattr from that file) then it should work again.


:?: Presumably, what you posted is not the complete log and thus the preceding "TheTVDB::305406 | ..." log entry shedding light on the issue as been omitted?


:idea: Please read Metadata and Extended Attributes for details on how to print xattr metadata for all your files.


EDIT:

You can probably use this command to find the offending file:

Code: Select all

filebot -mediainfo -r /path/to/files --filter "id == 328724" --format "{series} | {f}"

Re: filebot -script fn:miss --log off doesn't work since latest update

Posted: 06 Apr 2020, 17:42
by Predator2912
rednoah wrote: 06 Apr 2020, 16:11 You have a file that is tagged with xattr metadata for TheTVDB::305406 which no longer exists in the database. If you remove the offending file (or at least the xattr from that file) then it should work again.
OK.
I have now cleaned the faulty xattr from the files and the command goes through without errors.

Code: Select all

root@MadM4x-NAS:~# filebot -script fn:miss /volume3/TV\ Serien/ /volume6/TV\ Serien_TWO/
Done ヾ(@⌒ー⌒@)ノ
root@MadM4x-NAS:~#
But with the function --log off there are still no results:

Code: Select all

root@MadM4x-NAS:~# filebot -script fn:miss --log off /volume3/TV\ Serien/ /volume6/TV\ Serien_TWO/
root@MadM4x-NAS:~# 
rednoah wrote: 06 Apr 2020, 16:11 :?: Presumably, what you posted is not the complete log and thus the preceding "TheTVDB::305406 | ..." log entry shedding light on the issue as been omitted?
Sorry I think this is due to the output under my Mac Terminal, probably it does not make line breaks and therefore has not copied everything

Re: filebot -script fn:miss --log off doesn't work since latest update

Posted: 06 Apr 2020, 18:05
by rednoah
If you've removed all xattr from all files, then the miss script will do nothing as there's no files with xattr. The first log indicates as much.


As far as the miss script is concerned, it fundamentally works, but you can always run your own tests to see what works and what doesn't for your particular case:

Code: Select all

$ filebot -rename firefly.1x01.mp4 -non-strict --log INFO
[MOVE] from [firefly.1x01.mp4] to [Firefly - 1x01 - The Train Job.mp4]
$ filebot -script fn:miss . --log OFF
Firefly - 1x02 - Bushwhacked
Firefly - 1x03 - Our Mrs. Reynolds
...