API themoviedb updates

All your suggestions, requests and ideas for future development
Post Reply
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

API themoviedb updates

Post by kim »

Looks like filebot use old info ?
it's not broke yet, but it will if not changed, I think ?

(now -> new)
casts -> credits
releases -> release_date
trailers -> videos

Source:
https://developers.themoviedb.org/3/mov ... ie-credits
https://developers.themoviedb.org/3/mov ... ie-details
https://developers.themoviedb.org/3/mov ... vie-videos

https://developers.themoviedb.org/3/get ... o-response
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: API themoviedb updates

Post by rednoah »

Possibly. Will be fixed ASAP once my automated unit tests break. ;)

EDIT:

Fixed with r5168. But fairly untested with breaking changes to the public API of the Trailer object.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: API themoviedb updates

Post by kim »

Is this the only output from trailer now ?
"[Official Trailer [Trailer] [1080] [en_US]"

I need to get the YouTube link back, how to do it ?
aka the "key" MOST be there or it's 100% useless

so be Kodi compatible again in htpc

Code: Select all

def KODI_Trailer = "plugin://plugin.video.youtube/?action=play_video&videoid="

i.trailers.each{
	if (it.type == 'Trailer'){
		    trailer(KODI_Trailer+it.key)
				}
}
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: API themoviedb updates

Post by rednoah »

Here's what I get from the API. Presumably, key is what you're looking for? I'll add that property to the Trailer class.

Code: Select all

{
            "id":"533ec659c3a36854480009ee",
            "iso_639_1":"en",
            "iso_3166_1":"US",
            "key":"ejxQOv53lXs",
            "name":"Trailer 2",
            "site":"YouTube",
            "size":720,
            "type":"Trailer"
}
@see https://pastebin.com/tCHA8vQh


EDIT:

Fixed with r5169.
:idea: Please read the FAQ and How to Request Help.
Post Reply