Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
Added in single movie fetching to the movie section class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbart committed Dec 25, 2012
1 parent 1cea148 commit a267b16
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Server/Library/Section/Movie.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,4 +434,20 @@ public function searchMovies($query)
)
);
}

/**
* Returns a single movie by its rating key, key, or exact title match.
*
* @param integer|string $polymorphicData Either a rating key, a key, or a
* title for an exact title match that will be used to retrieve a single
* mvoie.
*
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
*
* @retrun Plex_Server_Library_Item_Movie A Plex library movie object.
*/
public function getMovie($polymorphicData)
{
return $this->getPolymorphicItem($polymorphicData);
}
}

0 comments on commit a267b16

Please sign in to comment.