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

4.1 Seasons

Jose Erick Carreon edited this page Apr 20, 2019 · 1 revision

How access to the Season and its information?

Access to one or multiple Season

// First get a show.
$show = $server->getLibrary()->getSection('TV Shows')->get('Breaking Bad');

$show->getSeasons(); // Get all seasons
$show->getSeason(1);
$show->getSeason('Season 1');
$show->getSeason('/library/metadata/3112');

Access to Season information

$season = $server->getLibrary()->getSection('TV Shows')->get('Breaking Bad')->getSeason(1);

$season->getParentRatingKey();
$season->getParentKey();
$season->getParentTitle();
$season->getParentIndex();
$season->getParentThumb();
$season->getArt();
$season->getLeafCount();
$season->getViewedLeafCount();
$season->getLibrarySectionId();
$season->getRatingKey();
$season->getKey();
$season->getType();
$season->getTitle();
$season->getIndex();
$season->getThumb();
$season->getAddedAt();
$season->getUpdatedAt();