This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
4.1.1 Episodes
Jose Erick Carreon edited this page Apr 22, 2019
·
3 revisions
// First get a show.
$show = $server->getLibrary()->getSection('TV Shows')->get('Breaking Bad');
$show->getEpisodes(); // Get all seasons
$show->getEpisode(1);
$show->getEpisode('Episode 1');
$show->getEpisode('/library/metadata/3113');
$episode = $server->getLibrary()->getSection('TV Shows')->get('Breaking Bad')->getSeason(1)->getEpisode(1);
$episode->getGrandparentRatingKey();
$episode->getGrandparentKey();
$episode->getGrandparentTitle();
$episode->getGrandparentThumb();
$episode->getParentRatingKey();
$episode->getParentKey();
$episode->getParentTitle();
$episode->getParentIndex();
$episode->getParentThumb();
$episode->getOriginallyAvailableAt();
$episode->getTitle();
$episode->getTitleSort();
$episode->getRatingKey();
$episode->getKey();
$episode->getArt();
$episode->getSummary();
$episode->getYear();
$episode->getRating();
$episode->getDuration();
$episode->getContentRating();
$episode->getLibrarySectionId();
$episode->getIndex();
$episode->getType();
$episode->getThumb();
$episode->buildUrlThumb(); //Generate a url of thumb with token
$episode->getAddedAt();
$episode->getUpdatedAt();
$episode->getMedia();
$episode->getDirector();
$episode->getWriter();