[API] Trakt.tv 's Search does not return Poster & Fanart (null)

m28ew

New member
Dec 22, 2016
14
0
0
Hi,

I'm trying to search a movie using h++p://api-v2launch.trakt.tv/search
and here is my script:

Code:
	header = {
		'Trakt-Api-Key': my_key,
		'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; IA64; Trident/7.0; rv:11.0) like Gecko',
		'Host': 'api-v2launch.trakt.tv',
		'Trakt-Api-Version': '2',
		'Referer': 'http://api-v2launch.trakt.tv/',
	}

	params = urllib.urlencode({'query':title, 'extended':'full,images', 'type':type, 'limit':'40'})
	url = 'http://api-v2launch.trakt.tv/search?' + params

With the request module (requests.session().get function), the script works almost perfecty
It's able to grab all provided data (json), except for all image data :confused:
All Poster & Fanart 's values are null


Here is a sample result ("Child 44"):

{"type":"movie","score":74.93526,"movie":{"title":"Child 44","overview":"Set in Stalin-era Soviet Union, a disgraced MGB agent is dispatched to investigate a series of child murders -- a case that begins to connect with the very top of party leadership.","year":2015,"images":{"poster":{"full":null,"medium":null,"thumb":null},"fanart":{"full":null,"medium":null,"thumb":null}},"ids":{"trakt":114124,"slug":"child-44-2015","imdb":"tt1014763","tmdb":181283}}}

Yes! I know the complete moviedb can be re-grabbed from h++p://api-v2launch.trakt.tv/movies/114124?extended=full%2Cimages
but i want to know if there's any fix for the issue, an url's param maybe? :confused:
Hence I'm able to get the data with just a single grab (the search instead)

Any help would be appreciated
Thanks