Пример #1
0
def tmdb_movies_search_term(term, page):
    from resources.lib.TheMovieDB import Search
    result = Search().movie(query=term,
                            language='en',
                            page=page,
                            append_to_response='external_ids,videos')
    return list_tmdb_items(result)
Пример #2
0
def movies_play_by_name(name, lang='en', usedefault='True'):
	tools.show_busy()
	from resources.lib.TheMovieDB import Search
	items = Search().movie(query=name, language=lang, page=1)['results']
	if not items:
		tools.hide_busy()
		plugin.ok('Movie not found', 'No information found for ' + name)
	if len(items) > 1:
		selection = plugin.select('Movie', ['%s (%s)' % ((s['title']), text.parse_year(s['release_date'])) for s in items])
	else:
		selection = 0
	tools.hide_busy()
	if selection != -1:
		id = items[selection]['id']
		movies_play_choose_player('tmdb', id, usedefault)