#if not $video_searches and not $related_stories
No results found for: $query
#end if
#if $suggestions_query
#end if
#if $amazon
#end if
#for $wt_num, ($wt_name, $wt_url, $wt_w, $wt_h) in $enumerate($getMultiple(['special_name', 'special_url', 'special_width', 'special_height']))
#if not $wt_w
#set $wt_w = '960'
#end if
#if not $wt_h
#set $wt_h = '1200'
#end if
#end for
#if $barges
#end if
#if $electricity
#end if
#if $solar
#end if
#if $oil
#end if
#if $silver
#end if
#if $healthfoods
#end if
#if $opticians
#end if
#if not $video_searches or not $related_stories or not $wikipedia_parser
#end if
#if $myspace_url
#end if
#if $cities
#else if $travel
#end if
#if $wikipedia_parser
##set $relpeople_num = len($wikipedia_parser.GetWikiTypedLinks('biography'))
##set $relpeople = $wikipedia_parser.GetWikiTypedLinks('biography', max_length = 20)
#end if
#if $wikipedia_parser
##set $relplaces_num = len($wikipedia_parser.GetWikiTypedLinks('location'))
##set $relplaces = $wikipedia_parser.GetWikiTypedLinks('location', max_length = 20)
#end if
#if $movies_data and $movies_data.get('movies', None)
#set $movie = $movies_data.movies[0]
#set $imdb_movie = None
#if $imdb_movies_data and $len($imdb_movies_data) > 0
## match first name and year between imdb and moviesdb movie
#try
#if $imdb_movies_data[0]['value']['title'].lower() == $movie.movie_name.lower() and $str($imdb_movies_data[0]['value']['year']) == $str($movie.year)
#set $imdb_movie = $imdb_movies_data[0]
#end if
#except
#pass
#end try
#end if
$movie.movie_name ($movie.year)
#if $movie.has_key('photos') and $movie['photos']
#for $p in $movie.photos
#set $thumb_url = 'http://cdn0.wn.com/mi/%s/%s/photo_%s.thumb.jpg' % ($movie.year, $movie.movie_title_id, $p['image_id'])
#set $med_url = 'http://cdn0.wn.com/mi/%s/%s/photo_%s.med.jpg' % ($movie.year, $movie.movie_title_id, $p['image_id'])
#end for
#end if
#if $imdb_movie and $imdb_movie['value'].has_key('plot')
Plot
$imdb_movie['value']['plot']
#if $imdb_movie and $imdb_movie['value'].has_key('keywords')
Keywords: $imdb_movie['value']['keywords']
#end if
#end if
#if $movie.has_key('genre_data')
$movie.movie_name ($movie.year) Genres
#end if
"$movie.movie_name ($movie.year)" Actors
"$movie.movie_name ($movie.year)" Director
#for $actor in $movie.cast_director
- $actor.name
#end for
#if $imdb_movie and $imdb_movie['value'].has_key('taglines')
Taglines:
$imdb_movie['value']['taglines'].replace('||', '
')
#end if
#if $imdb_movie and $imdb_movie['value'].has_key('quotes')
Quotes:
$imdb_movie['value']['quotes'].replace('||', '
')
#end if
#end if
#if $imdb_cast_data and $any([x['recent_movies'] for x in $imdb_cast_data])
#set $cast_data = $imdb_cast_data[0]
$cast_data['name'] Filmography
#end if
#if $music_data and $any([x['releases'] for x in $music_data])
#set $music_years = []
#for $artist in $music_data
#for $release in $artist.releases
#if $release.singles[0].date_rel and $release.singles[0].date_rel not in $music_years
$music_years.append($release.singles[0].date_rel)
#end if
#end for
#if $music_years
RELEASE
#for $year in $zip($music_years)
#end for
#end if
ALBUMS
#for $id, $release in $enumerate($artist.releases)
#end for
#for $id, $release in $enumerate($artist.releases)
#set $year_released = None
#if $release.singles[0].date_rel
#set $year_released = $release.singles[0].date_rel
#end if
$release.name
#if $year_released
(Released $year_released)
#end if
#try
#for $single in $release.singles
#for $track in $single.tracks
-
$track.name
#end for
#end for
#except
#end try
#end for
#if $artist.begin
Born: $artist.begin
#end if
#if $artist.end
Died: $artist.end
#end if
#end for
#end if
##---[CODE: Live_TV, fragment 3]---##
#if $liveTV.hasChannel() or $useLiveTVIndex
$wnIncludeFilledTemplate('cheetah-photo-search/lm_live_tv_body_v' + $str($liveTV.getBodyVersion()) + '.txt', {'liveTV':$liveTV, 'activeTab':$activeTab})
#end if
##---[/CODE]---##
#if len($video_searches)
#for vsid, vs in $enumerate($video_searches, 1)
Send this Playlist by SMS
Email this Page
#for $i, $video in enumerate($vs.videos)
$GenerateVideoDescription($video, order=$i+1)
#end for
#end for
#end if
#for vsid, vs in $enumerate($video_searches, 1)
#if ($vsid>1) or ($activeTab != 'playlist1')
#else
#end if
#if vs.get('playlist', None)
#for $i, $video in enumerate($vs.videos)
$GenerateVideoInfo($video)
#end for
#else
#for $i, $video in enumerate($vs.videos[:14])
$GenerateVideoInfo($video)
#end for
#end if
#if len($vs.videos) > 14 and $vs.get('playlist', None) == None
#for $i, $video in enumerate($vs.videos[14:23])
$GenerateVideoInfo($video)
#end for
#end if
#end for
#if len($video_searches)
#end if
#if $editable
#end if
#if $photoDBresults
#for $ph in $photoDBresults
#end for
#end if
#if $related_stories or $top_news
#if $editable
#end if
#for $article in $top_news
#if $article
$OutputTopNews($article)
#end if
#end for
Most Popular
#if $wikipedia_parser
RELATED LINKS
#end if
#for $article in $related_stories
#if $article
$OutputNews($article)
#end if
#end for
#if $page_title == 'Business Wire'
#set $search_type = 'boolean'
#else
#set $search_type = 'expression'
#end if
more news on: $page_title
#end if
#for $id, $parser in $enumerate($wikipedia_pages)
#if $editable
#end if
#if hasattr($parser, 'GetPageURL')
#set $biovideo_search_thread = $start_new_thread($getVar('do_bio_video_search', autoCall=False), $parser.GetTitle().replace('_',' '), 1)
#set $video_bio_search = $biovideo_search_thread.complete(on_error=([]))
##set $video_bio_search = $wnYouTubeVideoSearch($parser.GetTitle().replace('_',' '), 1)
#set $longest_video = None
#for $vid in $video_bio_search
#if $vid.can_embed
#set $longest_video = $vid
#end if
#end for
#if $wikipedia_parser.GetType() == 'film'
#set $longest_video = $find_longest_video($video_searches)
#end if
#if $longest_video
$wnGetSingleVideoPlayerEmbedCode($longest_video.media_object, width=280, height=230)
#end if
#end if
#if hasattr($parser, 'GetVideo')
$wnGetSingleVideoPlayerEmbedCode($parser.GetVideo(), width=280, height=230)
#end if
$parser.formatted_html_text
#if hasattr($parser, 'GetPageURL')
This text is licensed under the Creative Commons CC-BY-SA License. This text was originally published on Wikipedia and was developed by the Wikipedia community.
#end if
#end for
#if len($video_searches)
#end if
Affiliated Video Suggestions
#set queries = []
#set $query_num = 0
#while True:
#set query_string = $getParameter('videoquery%d' % query_num, '').strip()
#if $query_string
$queries.append($query_string)
#else
#break
#end if
#set query_num = $query_num + 1
#end while
#end def
#def renderBottom($page_title)