Renamed as "Null"

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Renamed as "Null"

Post by JimmyB4403 » 02 Dec 2019, 03:50

I've been using filebot for years. Randomly a few shows that I download are now being renamed as some version of "NULL". They worked fine up until a few weeks ago. I have listed the logs for one example. Any ideas why this is occurring, or how to prevent it moving forward?

Code: Select all

Run script [fn:amc] at [Sun Dec 01 08:15:05 UTC 2019]
Parameter: deleteAfterExtract = y
Parameter: unsorted = y
Parameter: music = n
Parameter: artwork = n
Parameter: ut_dir = 
Parameter: ut_kind = multi
Parameter: ut_title = 
Parameter: ut_label = 
Parameter: excludeList = /home/user/filebot/amc.txt
Argument[0]: /home/user/files/completed
Use excludes: /home/user/filebot/amc.txt (331)
Read archive [godfather.of.harlem.s01e10.720p.web.h264-metcon.rar] and extract to [/home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON]
Extracting files [/home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON.mkv]
Input: /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON.mkv
Group: [tvs:godfather] => [Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Godfather, godfather of harlem]
Fetching episode data for [The Godfather (2015)]
Resource not found: https://api.thetvdb.com/series/322974
Resource not found: https://api.thetvdb.com/series/322974/episodes?page=1
Fetching episode data for [Goldfathers]
Fetching episode data for [The Last Godfather]
Fetching episode data for [Russian Godfathers]
Fetching episode data for [Godfather of Harlem]
[i][MOVE] from [/home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON.mkv] to [/home/user/files/processed/TV Shows/Season 01/[b]null - S01E10 - Chickens Come Home to Roost.mkv[/b]][/i]
Delete archive /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.rar
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r12
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r04
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r11
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r00
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r08
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r14
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r10
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r05
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r03
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r07
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r09
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r13
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r15
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r06
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r02
Delete archive volume /home/user/files/completed/TV Shows/Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON/godfather.of.harlem.s01e10.720p.web.h264-metcon.r01
Done ヾ(@⌒ー⌒@)ノ

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

Re: Renamed as "Null"

Post by rednoah » 02 Dec 2019, 04:30

1.
What is the command you're executing? What does filebot -script fn:sysinfo say?

:idea: Please read How to Request Help.


2.
Here's what I get:

Code: Select all

$ filebot -rename Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON.mkv
Rename episodes using [TheTVDB] with [Airdate Order]
Auto-detected query: [Godfather of Harlem]
Fetching episode data for [Godfather of Harlem]
[MOVE] from [Godfather.of.Harlem.S01E10.720p.WEB.H264-METCON.mkv] to [Godfather of Harlem - 1x10 - Chickens Come Home to Roost.mkv]
Processed 1 files
Here's the episode data I get back from TheTVDB:

Code: Select all

$ filebot -list --q "Godfather of Harlem"
Godfather of Harlem - 1x01 - By Whatever Means Necessary
Godfather of Harlem - 1x02 - The Nitty Gritty
Godfather of Harlem - 1x03 - Our Day Will Come
Godfather of Harlem - 1x04 - I Am The Greatest
Godfather of Harlem - 1x05 - It's All In the Game
Godfather of Harlem - 1x06 - Il Canto de Malavita
Godfather of Harlem - 1x07 - Masters of War
Godfather of Harlem - 1x08 - How I Got Over
Godfather of Harlem - 1x09 - Rent Strike Blues
Godfather of Harlem - 1x10 - Chickens Come Home to Roost

:idea: The most likely cause is temporary API issues with TheTVDB, as they're currently at work and constantly changing things, and perhaps breaking things here and there temporarily:
https://forums.thetvdb.com/viewtopic.php?f=122&t=60239
:idea: Please read the FAQ and How to Request Help.

JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: Renamed as "Null"

Post by JimmyB4403 » 03 Dec 2019, 01:35

I have filebot run on a seedbox (it's a pre-installed app on the server) and then I use rsync to transfer the file to a directory on my home computer. I then run another instance of filebot locally to get the file moved to the proper location. Here is fn:sysinfo for the seedbox:

Code: Select all

FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-02-26 (r552)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 10.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 6 Core / 29 GB Max Memory / 40 MB Used Memory
OS: Linux (amd64)
HW: Linux XXXXXXXXX-seedbox.cloud.seedboxes.cc  Sun Mar 11 14:33:50 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/user/.filebot
Package: DEB
License: FileBot License XXXXXX (Valid-Until: 2068-10-18)

------------------- UPDATE AVAILABLE: FileBot 4.8.5 (r6224) --------------------
Since it is a preinstalled app, I have submitted a ticket to update the application on their end. Do you think that could be part of the problem?

Here is the fn:sysinfo for my local machine

Code: Select all

FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 16 Core / 7 GB Max Memory / 47 MB Used Memory
OS: Windows 10 (amd64)
Package: APPX
License: Microsoft Store License

The command I'm executing is here for the seedbox:

Code: Select all

filebot -script fn:amc "$CONFIG_INPUT" --output "$CONFIG_OUTPUT" --action move --conflict auto -non-strict --log-file "/home/user/filebot/amc.log" --def deleteAfterExtract=y unsorted=y music=n artwork=n ut_dir="$TORRENT_PATH" ut_kind="multi" ut_title="$TORRENT_NAME" ut_label="$TORRENT_LABEL" --def excludeList="/home/user/filebot/amc.txt"
And here is the command locally:

Code: Select all

filebot.exe -script fn:amc --output "\\NAS\Media" --action move --filter "n != /Magnum P I/" --conflict skip -non-strict "C:\Users\James\SeedboxTransfer" --def minFileSize=75000000 --log-file "C:\Automation\amc.log" --def music=n ignore="idx" plex=127.0.0.1:XXXXXXXXXXXXXXX pushbullet=XXXXXXXXXXXXXXXX "seriesFormat=TV Shows/{n}/{n} - {s00e00} - {t}" "movieFormat=Movies/{n} ({y})/{n} ({y})"
As I mentioned, this setup has been working for more than a year flawlessly up until a few weeks ago (with no changes on my end).

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

Re: Renamed as "Null"

Post by rednoah » 03 Dec 2019, 04:50

My educated guess would be that it's TheTVDB API sending back bad data for some reason for some time. It seems to be fixed now on their end, because I can't reproduce the issue.
:idea: Please read the FAQ and How to Request Help.

JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: Renamed as "Null"

Post by JimmyB4403 » 04 Dec 2019, 00:30

I appreciate you looking into it on your side. It seems to be happening with shows that air on Sunday that are released late Saturday night.

Moving forward, is there any way to "ignore" a file that is being renamed as "Null" or "Nullmetal Alchemist" (which is what Ray Donovan get renamed to lately)? This way it would skip renaming the file until the API was functioning properly.

I'd presume that the --def ignore option only works for the input file name, not the ultimate renamed file name...am I mistaken?

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

Re: Renamed as "Null"

Post by rednoah » 04 Dec 2019, 04:17

Please enable full debug logging:
viewtopic.php?t=3913

You can permanently set these settings like so:

Code: Select all

filebot -script fn:properties --def net.filebot.logging.debug=ALL net.filebot.web.WebRequest.log.response=true

That'll log the raw response we get back from the API. Please wait until it happens again, and then send me the full logs, then we know what the API sent back, so we know what FileBot can and cannot know at that point in time, and possibly alleviate the issue client-side.
:idea: Please read the FAQ and How to Request Help.

Post Reply