Get movie cast listing
 @return [Cast[]]
431883
def cast
      doc.search("table.cast tr").map do |link|
        #picture = link.children[0].search("img")[0]["src"] rescue nil
        #name = link.children[1].content.strip rescue nil
        id = link.children[1].search('a[@href^="/name/nm"]').first["href"].match(/\/name\/nm([0-9]+)/)[1] rescue nil
        char = link.children[3].content.strip rescue nil
        unless id.nil?
          person = IMDB::Person.new(id)
          IMDB::Cast.new(self, person, char)
        end
      end.compact
    end
1101102
def search_by_imdb(imdb_id)
      response = self.get("/search/series?imdbId=#{imdb_id}")
      return [] unless response["data"]

      case response["data"]
      when Array
        response["data"]
      when Hash
        [response["data"]]
      else
        []
      end
    end
148845
public function getCasts() : array
    {
        $attributes = $this->getTranslatableAttributes();
        $attributes[]  = 'translated';

        return array_merge(
            parent::getCasts(),
            array_fill_keys($attributes, 'json')
        );
    }
738444
public function getRolesIdList() {

		$roles		= $this->roleMappingList;
		$rolesList	= array();

		foreach ( $roles as $role ) {

			array_push( $rolesList, $role->roleId );
		}

		return $rolesList;
	}
1291128
public ResultList<MovieBasic> getRatedMovies(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException {
        return tmdbAccount.getRatedMovies(sessionId, accountId, page, sortBy, language);
    }
66796
def search_by_id(movie_id)
      movie = @badfruit.get_movie_info(movie_id, "main")
      raise 'Movie not found' if movie.nil? || movie.empty?
      @badfruit.parse_movie_array(JSON.parse(movie))
    end
92828
def reviews
      data = JSON.parse(@badfruit.get_movie_info(@id, "reviews"))
      reviews = Array.new
      data["reviews"].each do |review|
        reviews.push(Review.new(review))
      end
       return reviews 
    end
741011
public ResultList<Genre> getGenreTVList(String language) throws MovieDbException {
        return getGenreList(language, MethodSub.TV_LIST);
    }
1239730
def WhatActorsArePresent(self):
        '''
        '''
        results = []
        for E in self.header_elements:
            a = _find_actor(E)
            if a not in [ None, SOAP.ACTOR_NEXT ]: results.append(a)
        return results
1053160
def filmography
      #@return [Hash]
      #     writer: [Movie]
      #     actor: [Movie]
      #     director: [Movie]
      #     composer: [Movie]
      #as_writer = main_document.at("#filmo-head-Writer").next_element.search('b a').map { |e| e.get_attribute('href')[/tt(\d+)/, 1] } rescue []
      #as_actor = main_document.at("#filmo-head-Actor").next_element.search('b a').map { |e| e.get_attribute('href')[/tt(\d+)/, 1] } rescue []
      #as_director = main_document.at("#filmo-head-Director").next_element.search('b a').map { |e| e.get_attribute('href')[/tt(\d+)/, 1] } rescue []
      #as_composer = main_document.at("#filmo-head-Composer").next_element.search('b a').map { |e| e.get_attribute('href')[/tt(\d+)/, 1] } rescue []
      #{ writer: as_writer.map { |m| Movie.new(m) }, actor: as_actor.map { |m| Movie.new(m) }, director: as_director.map { |m| Movie.new(m) }, composer: as_composer.map { |m| Movie.new(m) } }
      films=main_document.css(".filmo-row b a").map { |e| e.get_attribute('href')[/tt(\d+)/, 1] } rescue []
      films.map { |f| Movie.new(f.to_i) }
    end
168692
public function getMovieInfo() {

		$post_id      = get_the_ID();
		$post_title   = get_the_title();
		$content_post = get_post( $post_id );

		$post_content = $content_post->post_content;
		$post_content = apply_filters( 'the_content', $post_content );
		$post_content = str_replace( ']]>', ']]&gt;', $post_content );

		$movie = [

			'Title'      => __( 'Title', 'extensions-for-grifus-copy' ),
			'Rated'      => __( 'Rated', 'extensions-for-grifus-copy' ),
			'Released'   => __( 'Published', 'extensions-for-grifus-copy' ),
			'imdbRating' => __( 'Rating', 'extensions-for-grifus-copy' ),
			'imdbVotes'  => __( 'Votes', 'extensions-for-grifus-copy' ),
			'Awards'     => __( 'Awards', 'extensions-for-grifus-copy' ),
			'Country'    => __( 'Country', 'extensions-for-grifus-copy' ),
		];

		foreach ( $movie as $key => $value ) {
			$data = info_movie_get_meta( $key );

			$movie[ $key ] .= ( $data ) ? ': ' . $data : ': ';
		}

		$movie['Original']  = __( 'Original', 'extensions-for-grifus-copy' );
		$movie['Original'] .= ': ';
		$movie['Original'] .= ( $post_title ) ? $post_title : '';

		$duration = get_post_custom_values( 'Runtime' );

		$movie['Duration']  = __( 'Duration', 'extensions-for-grifus-copy' );
		$movie['Duration'] .= ': ';
		$movie['Duration'] .= ( isset( $duration[0] ) ) ? $duration[0] : '';

		$movie['Sipnosis']  = __( 'Sipnosis', 'extensions-for-grifus-copy' );
		$movie['Sipnosis'] .= ': ';
		$movie['Sipnosis'] .= ( $post_content ) ? $post_content : '';

		$movie['Director']  = __( 'Director', 'extensions-for-grifus-copy' );
		$movie['Director'] .= ': ';

		$director = wp_get_post_terms( $post_id, 'director' );

		foreach ( $director as $key => $value ) {
			if ( isset( $value->name ) ) {
				$movie['Director'] .= $value->name . ', ';
			}
		}

		$movie['Stars'] = __( 'Stars', 'extensions-for-grifus-copy' ) . ': ';

		$stars = wp_get_post_terms( $post_id, 'star' );

		foreach ( $stars as $key => $value ) {
			if ( isset( $value->name ) ) {
				$movie['Stars'] .= $value->name . ', ';
			}
		}

		$movie['Cast'] = __( 'Cast', 'extensions-for-grifus-copy' ) . ': ';

		$cast = wp_get_post_terms( $post_id, 'actor' );

		foreach ( $cast as $key => $value ) {
			if ( isset( $value->name ) ) {
				$movie['Cast'] .= $value->name . ', ';
			}
		}

		$movie['Genre'] = __( 'Genre', 'extensions-for-grifus-copy' ) . ': ';

		$categories = get_the_category();

		foreach ( $categories as $key => $value ) {
			if ( isset( $value->name ) ) {
				$movie['Genre'] .= $value->name . ', ';
			}
		}

		$params = [

			'postID'      => $post_id,
			'movie_info'  => [

				'the_title' => $movie['Original'] . "\n\n",
				'title'     => $movie['Title'] . "\n\n",
				'published' => $movie['Released'] . "\n\n",
				'rated'     => $movie['Rated'] . "\n\n",
				'duration'  => $movie['Duration'] . "\n\n",
				'rating'    => $movie['imdbRating'] . "\n\n",
				'votes'     => $movie['imdbVotes'] . "\n\n",
				'awards'    => html_entity_decode( $movie['Awards'] ) . "\n\n",
				'country'   => $movie['Country'] . ".\n\n",
				'sipnosis'  => strip_tags( trim( $movie['Sipnosis'] ) ) . "\n\n",
				'director'  => trim( $movie['Director'], ', ' ) . ".\n\n",
				'stars'     => trim( $movie['Stars'], ', ' ) . ".\n\n",
				'cast'      => trim( $movie['Cast'], ', ' ) . ".\n\n",
				'genre'     => trim( $movie['Genre'], ', ' ) . '.',
			],
			'copy_title'  => __(
				'Copy information',
				'extensions-for-grifus-copy'
			),
			'copy_button' => __( 'Copy', 'extensions-for-grifus-copy' ),
		];

		return $params;
	}
454455
private function getOperators()
    {
        return [
            Operator::$wildcard,
            Operator::$equals,
            Operator::$doesNotEqual,
            Operator::$greaterThanOrEqual,
            Operator::$lessThanOrEqual,
            Operator::$approximateEqual,
            Operator::$startsWith,
            Operator::$endsWith,
            Operator::$contains,
            Operator::$and,
        ];
    }
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', [])
        ]
166325
public function list_scripts()
    {
        if ($this->list !== null) {
            return $this->list;
        }

        $this->list = $this->sieve->get_scripts();

        // Handle active script(s) and list of scripts according to Kolab's KEP:14
        if ($this->rc->config->get('managesieve_kolab_master')) {
            // Skip protected names
            foreach ((array)$this->list as $idx => $name) {
                $_name = strtoupper($name);
                if ($_name == 'MASTER')
                    $master_script = $name;
                else if ($_name == 'MANAGEMENT')
                    $management_script = $name;
                else if($_name == 'USER')
                    $user_script = $name;
                else
                    continue;

                unset($this->list[$idx]);
            }

            // get active script(s), read USER script
            if ($user_script) {
                $extension = $this->rc->config->get('managesieve_filename_extension', '.sieve');
                $filename_regex = '/'.preg_quote($extension, '/').'$/';
                $_SESSION['managesieve_user_script'] = $user_script;

                $this->sieve->load($user_script);

                foreach ($this->sieve->script->as_array() as $rules) {
                    foreach ($rules['actions'] as $action) {
                        if ($action['type'] == 'include' && empty($action['global'])) {
                            $name = preg_replace($filename_regex, '', $action['target']);
                            // make sure the script exist
                            if (in_array($name, $this->list)) {
                                $this->active[] = $name;
                            }
                        }
                    }
                }
            }
            // create USER script if it doesn't exist
            else {
                $content = "# USER Management Script\n"
                    ."#\n"
                    ."# This script includes the various active sieve scripts\n"
                    ."# it is AUTOMATICALLY GENERATED. DO NOT EDIT MANUALLY!\n"
                    ."#\n"
                    ."# For more information, see http://wiki.kolab.org/KEP:14#USER\n"
                    ."#\n";
                if ($this->sieve->save_script('USER', $content)) {
                    $_SESSION['managesieve_user_script'] = 'USER';
                    if (empty($this->master_file))
                        $this->sieve->activate('USER');
                }
            }
        }
        else if (!empty($this->list)) {
            // Get active script name
            if ($active = $this->sieve->get_active()) {
                $this->active = array($active);
            }

            // Hide scripts from config
            $exceptions = $this->rc->config->get('managesieve_filename_exceptions');
            if (!empty($exceptions)) {
                $this->list = array_diff($this->list, (array)$exceptions);
            }
        }

        // reindex
        if (!empty($this->list)) {
            $this->list = array_values($this->list);
        }

        return $this->list;
    }
666783
public function getCasts()
    {
        $this->casts = parent::getCasts();

        $dimensions = Config::get('imageupload.dimensions');

        if (empty($dimensions) || ! is_array($dimensions)) {
            return $this->casts;
        }

        foreach ($dimensions as $name => $dimension) {
            foreach ($this->thumbnailKeys as $key => $cast) {
                $this->casts[$name.'_'.$key] = $cast;
            }
        }

        return $this->casts;
    }
873372
def getPlaylists(extras=nil)
      method = 'getPlaylists'
      type = Playlist
      args = {}
      args[:extras] = extras if extras
      return_object type,method,args,true
    end
1294963
def instance_query_movie_ids(self) -> List[str]:
        """"""
        completions_with_desc = []

        # Sort the movie id strings with a natural sort since they contain numbers
        for movie_id in utils.natural_sort(self.MOVIE_DATABASE_IDS):
            if movie_id in self.MOVIE_DATABASE:
                movie_entry = self.MOVIE_DATABASE[movie_id]
                completions_with_desc.append(argparse_completer.CompletionItem(movie_id, movie_entry['title']))

        # Mark that we already sorted the matches
        self.matches_sorted = True
        return completions_with_desc