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

Commit 617e474

Browse files
committed
Updated the README with section based examples.
1 parent 06e39c3 commit 617e474

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,56 @@ Examples
2626
$client = $plex->getClient('zoe');
2727

2828

29+
// Library
30+
$onDeck = $server->getLibrary()->getOnDeckItems();
31+
$recentlyAddedItems = $server->getLibrary()->getRecentlyAddedItems();
32+
$allSections = $server->getLibrary()->getSections();
33+
$movieSection = $server->getLibrary()->getSectionByKey(1);
34+
$showSection = $server->getLibrary()->getSectionByKey(4);
35+
$artistSection = $server->getLibrary()->getSectionByKey(5);
36+
$photoSection = $server->getLibrary()->getSectionByKey(6);
37+
38+
// Show Section
39+
$allShows = $showSection->getAllShows();
40+
$unwatchedShows = $showSection->getUnwatchedShows();
41+
$recentlyAiredEpisodes = $showSection->getRecentlyAiredEpisodes();
42+
$recentlyAddedEpisodes = $showSection->getRecentlyAddedEpisodes();
43+
$recentlyViewedEpisodes = $showSection->getRecentlyViewedEpisodes();
44+
$onDeckEpisodes = $showSection->getOnDeckEpisodes();
45+
$collections = $showSection->getCollections();
46+
$showsByCollection = $showSection->getShowsByCollection(13205);
47+
$showsByFirstCharacter = $showSection->getShowsByFirstCharacter('Q');
48+
$genres = $showSection->getGenres();
49+
$showsByGenre = $showSection->getShowsByGenre(8196);
50+
$showsByYear = $showSection->getShowsByYear(1983);
51+
$showsByContentRating = $showSection->getShowsByContentRating('TV-MA');
52+
53+
// Movie Section
54+
$allMovies = $movieSection->getAllMovies();
55+
$unwatchedMovies = $movieSection->getUnwatchedMovies();
56+
$recentlyReleasedMovies = $movieSection->getRecentlyReleasedMovies();
57+
$recentlyAddedMovies = $movieSection->getRecentlyAddedMovies();
58+
$recentlyViewedMovies = $movieSection->getRecentlyViewedMovies();
59+
$onDeckMovies = $movieSection->getOnDeckMovies();
60+
$collections = $movieSection->getCollections();
61+
$moviesByCollection = $movieSection->getMoviesByCollection(13206);
62+
$moviesByGenre = $movieSection->getMoviesByGenre(1252);
63+
$moviesByYear = $movieSection->getMoviesByYear(1983);
64+
$moviesByDecade = $movieSection->getMoviesByDecade(1980);
65+
$directors = $movieSection->getDirectors();
66+
$moviesByDirector = $movieSection->getMoviesByDirector(357);
67+
$actors = $movieSection->getActors();
68+
$moviesByContentRating = $movieSection->getMoviesByContentRating('R');
69+
$moviesByResolution = $movieSection->getMoviesByResolution('1080');
70+
$moviesByFirstCharacter = $movieSection->getMoviesByFirstCharacter('Q');
71+
72+
// Artist Section
73+
$allArtists = $artistSection->getAllArtists();
74+
$allAlbums = $artistSection->getAllAlbums();
75+
$genres = $artistSection->getGenres();
76+
$artistsByGenre = $artistSection->getArtistsByGenre(11644);
77+
$albumsByDecade = $artistSection->getAlbumsByDecade(1980);
78+
$albumsByYear = $artistSection->getAlbumsByYear(1983);
79+
$collections = $artistSection->getCollections()
80+
$artistsByCollection = $artistSection->getMoviesByCollection(13207);
81+
$recentlyAddedAlbums = $artistSection->getRecentlyAddedAlbums();

0 commit comments

Comments
 (0)