src/model/admin/class-rating.php
public function set_movie_votes( $post_id, $total_votes ) {

		$total_votes = $total_votes ?: 'N/B';

		if ( ! add_post_meta( $post_id, 'imdbVotes', $total_votes, true ) ) {
			update_post_meta( $post_id, 'imdbVotes', $total_votes );
		}
	}
public function set_movie_votes( $post_id, $total_votes ) {

		$total_votes = $total_votes ?: 'N/B';

		if ( ! add_post_meta( $post_id, 'imdbVotes', $total_votes, true ) ) {
			update_post_meta( $post_id, 'imdbVotes', $total_votes );
		}
	}
Set movie votes.

@since 1.0.1

@param string $post_id     → post id.
@param int    $total_votes → number of total votes.