Get movie title
 @return [String]
543654
def title
      doc.at("//head/meta[@name='title']")["content"].split(/\(.*\)/)[0].strip! ||
          doc.at("h1.header").children.first.text.strip

    end
548116
def all_titles_h1_h2
      return unless @page
      out = []
      out << @page.css('title').text << { @page_url => @page.css('h1').text }
      out << { @page_url => @page.css('h2').text }
      out
    end
406185
private function getEpisodeTitle($each_episode, $type = false)
    {
        $title = $each_episode->find('.episode-title', 0);
        if ($type) {
            if ($title->find('span', 1)) {
                return trim($title->find('span', 1)->plaintext);
            }

            return trim($title->find('span', 0)->plaintext);
        } else {
            return $title->find('a', 0)->plaintext;
        }
    }
1348980
def search(self, release_name, lang):
        """"""
        subtitles = []
        language = babelfish.Language.fromalpha2(lang).name
        payload = {'q': release_name, 'r': 'true'}
        url = 'http://subscene.com/subtitles/release'
        response = requests.get(url, params=payload, headers=self.headers).text
        soup = BS(response, "lxml")
        positive = soup.find_all(class_='l r positive-icon')
        neutral = soup.find_all(class_='l r neutral-icon')
        for node in chain(positive, neutral):
            suburl = node.parent['href']
            quality = node['class'][2].split('-')[0]
            name = node.parent.findChildren()[1].text.strip()
            if language.lower() in suburl and 'trailer' not in name.lower():
                subtitle = {}
                subtitle['release'] = name
                subtitle['link'] = urljoin(self.base_url, suburl)
                subtitle['lang'] = lang
                subtitle['movie'] = name+quality
                subtitle['date'] = '10/10/2010'
                subtitles.append(subtitle)
        return subtitles
873438
def getMovie():
        
        if not XLoaderWidget.MOVIE:
            filename = projexui.resources.find('img/ajax_loader.gif')
            XLoaderWidget.MOVIE = QMovie()
            XLoaderWidget.MOVIE.setFileName(filename)
            XLoaderWidget.MOVIE.start()
        
        return XLoaderWidget.MOVIE
323243
public function getTitles(){
		if(is_null($this->titles) && $module = Module::getModuleByName(Constants::MODULE_MAJ_MISC_NAME)){
			$pattern = '/(.*) (('.$module->getSetting('MAJ_TITLE_PREFIX', '').')(.*))/';
			$this->titles=array();
			$titlefacts = $this->gedcomrecord->getFacts('TITL');
			foreach($titlefacts as $titlefact){
				$ct2 = preg_match_all($pattern, $titlefact->getValue(), $match2);
				if($ct2>0){
					$this->titles[$match2[1][0]][]= trim($match2[2][0]);
				}
				else{
					$this->titles[$titlefact->getValue()][]='';
				}
			}
		}
		return $this->titles;
	}
9686
def obtain_the_title(check = nil)
    	post = obtain_record(check)
    	render :inline => post.post_title if !post.blank?
    end
586879
def get_title(self, lang=None):
        
        return self.metadata.get_single(key=DC.title, lang=lang)
956341
function getTitleFromPath( file, options ) {

	var _titleSeparator = options && options.titleSeparator ?
				options.titleSeparator : titleSeparator,
			i = 0,
			parts = file.path.split('/'),
			fileParts = parts[parts.length - 1].split('.'),
			filename = fileParts[0],
			fileNameParts = filename.split( _titleSeparator ),
			len = fileNameParts.length,
			title = '';

	for ( ; i < len; i++ ) {

		title += i ? ' ' : '';
		title += fileNameParts[i];
	}

	return titleCase( title );
}
586466
def _get_videoname(cls, videofile):
        
        name = os.path.basename(videofile)
        name = os.path.splitext(name)[0]
        return name
862940
def get_title():
    ''' 
    '''
    MAX_LEN = 256
    buffer_ = create_unicode_buffer(MAX_LEN)
    kernel32.GetConsoleTitleW(buffer_, MAX_LEN)
    log.debug('%s', buffer_.value)
    return buffer_.value
646353
def title(self):
        
        with switch_window(self._browser, self.name):
            return self._browser.title
441249
def get_episode_title(episode: Episode) -> int:
    
    for title in episode.titles:
        if title.lang == 'ja':
            return title.title
    else:
        return episode.titles[0].title
258777
async def find_movie(self, query):
        
        params = OrderedDict([
            ('query', query), ('include_adult', False),
        ])
        url = self.url_builder('search/movie', {}, params)
        data = await self.get_data(url)
        if data is None:
            return
        return [
            Movie.from_json(item, self.config['data'].get('images'))
            for item in data.get('results', [])
        ]
202398
function selectAllMovies() {
  var movie = db.getSchema().table('Movie');
  db.select(movie.id, movie.title, movie.year).
      from(movie).exec().then(
      function(results) {
        var elapsed = Date.now() - startTime;
        $('#load_time').text(elapsed.toString() + 'ms');
        $('#master').bootstrapTable('load', results).
            on('click-row.bs.table', function(e, row, $element) {
              startTime = Date.now();
              generateDetails(row.id);
            });
      });
}
1212298
async def get_movie(self, id_):
        
        url = self.url_builder(
            'movie/{movie_id}',
            dict(movie_id=id_),
            url_params=OrderedDict(append_to_response='credits'),
        )
        data = await self.get_data(url)
        if data is None:
            return
        return Movie.from_json(data, self.config['data'].get('images'))
551492
def title
      resource_title = resource.try(:resource_title) || resource.try(:title)
      return if resource_title.blank?

      if resource_title.is_a?(String)
        resource_title
      elsif resource_title.is_a?(Hash)
        translated_attribute(resource_title)
      end
    end