Bug #2490

bindVideoMetadata does not work on title search

Added by Fredrik Lundmark about 4 years ago. Updated about 4 years ago.

Status:FixedStart date:01/15/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Ecmascript & Duktape
Target version:-
Found in version:4.9.78.g65a6c Platform:Linux

Description

The line below works if you use javascript.
page.appendItem("testplug" + ":video:" + "", "video",{title: 'John Wick'}).bindVideoMetadata({title: 'John Wick'});

361 9.471079000    192.168.0.156         23.21.98.69           HTTP     292    GET /3/search/movie?query=John%20Wick&api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1 
363 9.591023000 23.21.98.69 192.168.0.156 HTTP 796 HTTP/1.1 200 OK (application/json)
365 9.591995000 192.168.0.156 23.21.98.69 HTTP 274 GET /3/movie/245891?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1
366 9.713420000 23.21.98.69 192.168.0.156 HTTP 1139 HTTP/1.1 200 OK (application/json)
367 9.713930000 192.168.0.156 23.21.98.69 HTTP 280 GET /3/movie/245891/casts?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1
369 9.836752000 23.21.98.69 192.168.0.156 HTTP 1275 HTTP/1.1 200 OK (application/json)
371 9.855963000 192.168.0.156 23.21.98.69 HTTP 275 GET /3/configuration?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1
373 10.084319000 23.21.98.69 192.168.0.156 HTTP 862 HTTP/1.1 200 OK (application/json)
378 10.164936000 192.168.0.156 198.41.186.159 HTTP 247 GET /t/p/w154/sq2MmFv9sanl9PFMfbdaBLveSJ8.jpg HTTP/1.1

With ecmascript however you will not get a thing if you use the above line (note that imdb-id seems to be working when using ecmascript)

73 8.692854000    192.168.0.156         54.243.221.106        HTTP     277    GET /3/movie/undefined?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1 
75 8.821357000 54.243.221.106 192.168.0.156 HTTP 561 HTTP/1.1 404 Not Found (application/json)
77 8.822511000 192.168.0.156 54.243.221.106 HTTP 277 GET /3/movie/undefined?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1
78 8.945549000 54.243.221.106 192.168.0.156 HTTP 561 HTTP/1.1 404 Not Found (application/json)

Associated revisions

Revision 6009766d
Added by Andreas Smas about 4 years ago

ecamscript: Make sure es_prop_to_rstr() returns NULL if value type is not a string

Fixes #2490

Change included in version 4.9.80

History

#1 Updated by Fredrik Lundmark about 4 years ago

test [DEBUG]: Opening route ^test:start
METADATA [DEBUG]: Processing 'testplug:video:' custom_title=(null) imdbid=undefined lonely=no duration=0,000000
METADATA [DEBUG]: Performing IMDB lookup for undefined using tmdb for testplug:video:
DB [DEBUG]: Opened database /home/hp/.hts/showtime/metadb/meta.db pages: free=12 total=66
HTTP [DEBUG]: Disconnected from showtime.lonelycoder.com:80 (id=1) Keep alive expired
HTTP [DEBUG]: Disconnected from showtimemediacenter.com:443 (id=2) Keep alive expired
HTTP [DEBUG]: Disconnected from 192.168.0.101:2869 (id=10) Keep alive expired
HTTP [DEBUG]: Connected to api.themoviedb.org:80 (id=11)
HTTP [DEBUG]: > GET /3/movie/undefined?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1
HTTP [DEBUG]: > User-Agent: Showtime Linux/x86_64 4.9.78.g65a6c
HTTP [DEBUG]: > Connection: keep-alive
HTTP [DEBUG]: > Accept: /*
HTTP [DEBUG]: > Accept-Encoding: gzip
HTTP [DEBUG]: > Host: api.themoviedb.org
HTTP [DEBUG]: http://api.themoviedb.org/3/movie/undefined?api_key=a0d71cffe2d6693d462af9e4f336bc06: Response:
HTTP [DEBUG]: < HTTP/1.1 404 Not Found
HTTP [DEBUG]: < Access-Control-Allow-Origin: *
HTTP [DEBUG]: < Cache-Control: public, max-age=21600
HTTP [DEBUG]: < Content-Type: application/json;charset=utf-8
HTTP [DEBUG]: < Date: Thu, 15 Jan 2015 21:14:26 GMT
HTTP [DEBUG]: < ETag: "37a6259cc0c1dae299a7866489dff0bd"
HTTP [DEBUG]: < Server: nginx
HTTP [DEBUG]: < Status: 404 Not Found
HTTP [DEBUG]: < X-Memc: MISS
HTTP [DEBUG]: < X-Memc-Age: 0
HTTP [DEBUG]: < X-Memc-Expires: 21600
HTTP [DEBUG]: < X-Memc-Key: c11edf26483bfb8ba711bc59ccd501f3
HTTP [DEBUG]: < Content-Length: 94
HTTP [DEBUG]: < Connection: keep-alive
HTTP [DEBUG]: <
drain [DEBUG]: 0x000000: 7b 22 73 74 61 74 75 73 5f 63 6f 64 65 22 3a 36 {"status_code":6
drain [DEBUG]: 0x000010: 2c 22 73 74 61 74 75 73 5f 6d 65 73 73 61 67 65 ,"status_message
drain [DEBUG]: 0x000020: 22 3a 22 49 6e 76 61 6c 69 64 20 69 64 3a 20 54 ":"Invalid id: T
drain [DEBUG]: 0x000030: 68 65 20 70 72 65 2d 72 65 71 75 69 73 69 74 65 he pre-requisite
drain [DEBUG]: 0x000040: 20 69 64 20 69 73 20 69 6e 76 61 6c 69 64 20 6f id is invalid o
drain [DEBUG]: 0x000050: 72 20 6e 6f 74 20 66 6f 75 6e 64 2e 22 7d r not found."}
HTTP [DEBUG]: Parking connection to api.themoviedb.org:80 (id=11)
TMDB [INFO ]: Load error HTTP error: 404
METADATA [DEBUG]: testplug:video: for Temporary error
METADATA [DEBUG]: Processing 'testplug:video:' custom_title=(null) imdbid=undefined lonely=no duration=0,000000
METADATA [DEBUG]: Performing IMDB lookup for undefined using tmdb for testplug:video:
HTTP [DEBUG]: Reusing connection to api.themoviedb.org:80 (id=11)
HTTP [DEBUG]: > GET /3/movie/undefined?api_key=a0d71cffe2d6693d462af9e4f336bc06 HTTP/1.1
HTTP [DEBUG]: > User-Agent: Showtime Linux/x86_64 4.9.78.g65a6c
HTTP [DEBUG]: > Connection: keep-alive
HTTP [DEBUG]: > Accept: */

HTTP [DEBUG]: > Accept-Encoding: gzip
HTTP [DEBUG]: > Host: api.themoviedb.org
HTTP [DEBUG]: http://api.themoviedb.org/3/movie/undefined?api_key=a0d71cffe2d6693d462af9e4f336bc06: Response:
HTTP [DEBUG]: < HTTP/1.1 404 Not Found
HTTP [DEBUG]: < Access-Control-Allow-Origin: *
HTTP [DEBUG]: < Cache-Control: public, max-age=21600
HTTP [DEBUG]: < Content-Type: application/json;charset=utf-8
HTTP [DEBUG]: < Date: Thu, 15 Jan 2015 21:14:26 GMT
HTTP [DEBUG]: < ETag: "37a6259cc0c1dae299a7866489dff0bd"
HTTP [DEBUG]: < Server: nginx
HTTP [DEBUG]: < Status: 404 Not Found
HTTP [DEBUG]: < X-Memc: MISS
HTTP [DEBUG]: < X-Memc-Age: 0
HTTP [DEBUG]: < X-Memc-Expires: 21600
HTTP [DEBUG]: < X-Memc-Key: c11edf26483bfb8ba711bc59ccd501f3
HTTP [DEBUG]: < Content-Length: 94
HTTP [DEBUG]: < Connection: keep-alive
HTTP [DEBUG]: <
drain [DEBUG]: 0x000000: 7b 22 73 74 61 74 75 73 5f 63 6f 64 65 22 3a 36 {"status_code":6
drain [DEBUG]: 0x000010: 2c 22 73 74 61 74 75 73 5f 6d 65 73 73 61 67 65 ,"status_message
drain [DEBUG]: 0x000020: 22 3a 22 49 6e 76 61 6c 69 64 20 69 64 3a 20 54 ":"Invalid id: T
drain [DEBUG]: 0x000030: 68 65 20 70 72 65 2d 72 65 71 75 69 73 69 74 65 he pre-requisite
drain [DEBUG]: 0x000040: 20 69 64 20 69 73 20 69 6e 76 61 6c 69 64 20 6f id is invalid o
drain [DEBUG]: 0x000050: 72 20 6e 6f 74 20 66 6f 75 6e 64 2e 22 7d r not found."}
HTTP [DEBUG]: Parking connection to api.themoviedb.org:80 (id=11)
TMDB [INFO ]: Load error HTTP error: 404
METADATA [DEBUG]: testplug:video: for Temporary error
core [DEBUG]: Shutdown requested, returncode = 0
core [DEBUG]: Caches flushed
core [DEBUG]: arch stop=0
test [DEBUG]: Route ^test:start removed

#2 Updated by Andreas Smas about 4 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF