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

Commit a267b16

Browse files
committed
Added in single movie fetching to the movie section class.
1 parent 1cea148 commit a267b16

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Server/Library/Section/Movie.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,4 +434,20 @@ public function searchMovies($query)
434434
)
435435
);
436436
}
437+
438+
/**
439+
* Returns a single movie by its rating key, key, or exact title match.
440+
*
441+
* @param integer|string $polymorphicData Either a rating key, a key, or a
442+
* title for an exact title match that will be used to retrieve a single
443+
* mvoie.
444+
*
445+
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
446+
*
447+
* @retrun Plex_Server_Library_Item_Movie A Plex library movie object.
448+
*/
449+
public function getMovie($polymorphicData)
450+
{
451+
return $this->getPolymorphicItem($polymorphicData);
452+
}
437453
}

0 commit comments

Comments
 (0)