Subtitles: Cannot get property 'path' on null object

Support for Windows users
Post Reply
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Subtitles: Cannot get property 'path' on null object

Post by viking »

I have been trying to find subtitles for a show for several days w/o luck. It has been available on opensubtitles.org for 4 days on 5/14/16.
(since 5/10/16;
http://www.opensubtitles.org/download/s ... id-5301178.
http://www.opensubtitles.org/en/ssearch ... vie-442047)

If I run osdb.explain:

Code: Select all

filebot.cmd -script dev:osdb.explain "P:\Ultimate_Server\Television\Hunters\Season 1\Hunters.S01E05.720p.HDTV.x264-AVS[rarbg].mkv" -non-strict --def fetch=y --log all --log-file P:\Ultimate_Server\temp_log.txt
then I get an error:

Code: Select all

File: P:\Ultimate_Server\Television\Hunters\Season 1\Hunters.S01E05.720p.HDTV.x264-AVS[rarbg].mkv
Hash/Tag Lookup (hash: 1747dffc3ee54186, size: 886023318, lang: eng, tag: Hunters.S01E05.720p.HDTV.x264-AVS[rarbg])
Best Hash Match: null
Name Lookup (file: Hunters.S01E05.720p.HDTV.x264-AVS[rarbg], strict: false, lang: eng)
Best Name Match: null
Cannot get property 'path' on null object
java.lang.NullPointerException: Cannot get property 'path' on null object
	at Script1$_run_closure4$_closure8.doCall(Script1.groovy:39)
	at Script1$_run_closure4.doCall(Script1.groovy:38)
	at Script1.run(Script1.groovy:9)
	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)
Failure (°_°)
1. Why do I get this error? Maybe it is not relevant since nothing was found?
2. Why aren't the subtitles on opensubtitles.org found?

p.s. Running v 4.7

EDIT: Fixed link to Hunters above.
Last edited by viking on 15 May 2016, 18:02, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitles: Cannot get property 'path' on null object

Post by rednoah »

1.
I see. There seems to be a bug in the osdb.explain script when it doesn't get back any results.


2.
A manual search for "Hunters" doesn't give me a good result at all. FileBot uses it's own local opensubtitles index (and not use the search api) for searching for movies/shows by name. If a new show is added to osdb, then filebot might not be able to find it until a few weeks later (retrieve new db dump every 30 days + cloudflare cache 5 days = max 35 days out of sync).
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Subtitles: Cannot get property 'path' on null object

Post by viking »

rednoah wrote:2.
A manual search for "Hunters" doesn't give me a good result at all. FileBot uses it's own local opensubtitles index (and not use the search api) for searching for movies/shows by name. If a new show is added to osdb, then filebot might not be able to find it until a few weeks later (retrieve new db dump every 30 days + cloudflare cache 5 days = max 35 days out of sync).
Not sure what you meant by "A manual search for "Hunters" doesn't give me a good result at all."?
Directly on opensubtitles I found good results:
http://www.opensubtitles.org/en/ssearch ... vie-442047

Note also that Filebot was able to find subtitles for this show in the past (although last week it was delayed by 2 days; two weeks ago it was delayed by one day, which is "normal").

p.s. There was an error in my link in the original post.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitles: Cannot get property 'path' on null object

Post by rednoah »

FileBot -> Subtitles -> Search for "Hunters" -> Is the correct option even an option? If not, then name search can't work.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Subtitles: Cannot get property 'path' on null object

Post by viking »

Ah, I see. Searching from within Filebot GUI (which I wasn't using)!

1. You also said "If a new show is added to osdb..". Did you mean a new title or new episode?
A. If new title, it has been available for 34 days now (Since 4/18/16), so I guess it should start working after tomorrow?
B. If new episode, does that mean that we may have to wait up to 35 days for each episode? Strange that it used work w/o significant wait for the previous 4 episodes (1-2 days only)?

2. Any way that you could update the db more frequently than every 30 days?

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

Re: Subtitles: Cannot get property 'path' on null object

Post by rednoah »

1.
TV Show and Movie entries are usually added well before anything is released, so it's rarely an issue. Search requires the series entry (name + id) so it can look for subtitles by series id based on a name match. Once the series has been added, I'll work for any episode. Also, hash-lookup always works regardless of the name-search index.


2.
My indexer will grab new dumps every week now.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Subtitles: Cannot get property 'path' on null object

Post by viking »

Great that dumps are grabbed every week now!
However, any clue why Hunters still do not show up in the Filebot Search? It has been available with subtitles on opensubtitles for more than 1 month.
I believe that the ID=442047.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitles: Cannot get property 'path' on null object

Post by rednoah »

1.
OSDB only works with IMDB IDs, so it's this one:
http://www.imdb.com/title/tt4983204/


2.
Last time FileBot grabbed a database dump, less than 30 days ago, that TV Show hadn't been added yet. It seems to be there now, so it'll start working eventually.

@see http://www.opensubtitles.org/addons/export_movie.php
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Subtitles: Cannot get property 'path' on null object

Post by viking »

rednoah wrote:1.
Last time FileBot grabbed a database dump, less than 30 days ago, that TV Show hadn't been added yet. It seems to be there now, so it'll start working eventually.

@see http://www.opensubtitles.org/addons/export_movie.php
I just tried to search using the FileBot GUI, but it is still not found. Is that because of some cache issue?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitles: Cannot get property 'path' on null object

Post by rednoah »

1. Needs to be in the OSDB index (OK)
2. Needs to be indexed and uploaded (every Sunday morning)
3. Needs to be served by CloudFlare (0-5 days after upload)
4. Latest index needs to be requested by FileBot (currently checking for updates every 30 days)

(1.) didn't work last Sunday because of the 30 day cache. I did index with the latest data right now so (1.) and (2.) is done. But you might still have to wait a few days for (3.) cloudflare caching.

You have no control over 1-3 but you can fix 4 yourself by clearing the cache.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Subtitles: Cannot get property 'path' on null object

Post by viking »

rednoah wrote:1. Needs to be in the OSDB index (OK)
2. Needs to be indexed and uploaded (every Sunday morning)
3. Needs to be served by CloudFlare (0-5 days after upload)
4. Latest index needs to be requested by FileBot (currently checking for updates every 30 days)

(1.) didn't work last Sunday because of the 30 day cache. I did index with the latest data right now so (1.) and (2.) is done. But you might still have to wait a few days for (3.) cloudflare caching.

You have no control over 1-3 but you can fix 4 yourself by clearing the cache.
OK. Thanks :)
Post Reply