mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
57 KiB
57 KiB
GetSearchResultsMetadata
Example Usage
import { GetSearchResultsMetadata } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetSearchResultsMetadata = {
librarySectionID: 1,
librarySectionTitle: "Movies",
librarySectionUUID: "322a231a-b7f7-49f5-920f-14c61199cd30",
sourceTitle: "Hera",
ratingKey: 10398,
key: "/library/metadata/10398",
guid: "plex://movie/5d7768284de0ee001fcc8f52",
studio: "Paramount",
type: "movie",
title: "Mission: Impossible",
contentRating: "PG-13",
summary:
"When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score.",
rating: 6.6,
audienceRating: 7.1,
year: 1996,
tagline: "Expect the impossible.",
thumb: "/library/metadata/10398/thumb/1679505055",
art: "/library/metadata/10398/art/1679505055",
duration: 6612628,
originallyAvailableAt: new Date("1996-05-22T00:00:00Z"),
addedAt: 1589234571,
updatedAt: 1679505055,
audienceRatingImage: "rottentomatoes://image.rating.upright",
chapterSource: "media",
primaryExtraKey: "/library/metadata/10501",
ratingImage: "rottentomatoes://image.rating.ripe",
media: [
{
id: 26610,
duration: 6612628,
bitrate: 4751,
width: 1916,
height: 796,
aspectRatio: 2.35,
audioChannels: 6,
audioCodec: "aac",
videoCodec: "hevc",
videoResolution: 1080,
container: "mkv",
videoFrameRate: "24p",
audioProfile: "lc",
videoProfile: "main 10",
part: [
{
id: 26610,
key: "/library/parts/26610/1589234571/file.mkv",
duration: 6612628,
file:
"/movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv",
size: 3926903851,
audioProfile: "lc",
container: "mkv",
videoProfile: "main 10",
},
],
},
],
genre: [
{
tag: "Action",
},
],
director: [
{
tag: "Brian De Palma",
},
],
writer: [
{
tag: "David Koepp",
},
],
country: [
{
tag: "United States of America",
},
],
role: [
{
tag: "Tom Cruise",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
allowSync |
boolean | ➖ | N/A | |
librarySectionID |
number | ➖ | N/A | 1 |
librarySectionTitle |
string | ➖ | N/A | Movies |
librarySectionUUID |
string | ➖ | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
personal |
boolean | ➖ | N/A | |
sourceTitle |
string | ➖ | N/A | Hera |
ratingKey |
number | ➖ | N/A | 10398 |
key |
string | ➖ | N/A | /library/metadata/10398 |
guid |
string | ➖ | N/A | plex://movie/5d7768284de0ee001fcc8f52 |
studio |
string | ➖ | N/A | Paramount |
type |
string | ➖ | N/A | movie |
title |
string | ➖ | N/A | Mission: Impossible |
contentRating |
string | ➖ | N/A | PG-13 |
summary |
string | ➖ | N/A | When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score. |
rating |
number | ➖ | N/A | 6.6 |
audienceRating |
number | ➖ | N/A | 7.1 |
year |
number | ➖ | N/A | 1996 |
tagline |
string | ➖ | N/A | Expect the impossible. |
thumb |
string | ➖ | N/A | /library/metadata/10398/thumb/1679505055 |
art |
string | ➖ | N/A | /library/metadata/10398/art/1679505055 |
duration |
number | ➖ | N/A | 6612628 |
originallyAvailableAt |
Date | ➖ | N/A | 1996-05-22 00:00:00 +0000 UTC |
addedAt |
number | ➖ | N/A | 1589234571 |
updatedAt |
number | ➖ | N/A | 1679505055 |
audienceRatingImage |
string | ➖ | N/A | rottentomatoes://image.rating.upright |
chapterSource |
string | ➖ | N/A | media |
primaryExtraKey |
string | ➖ | N/A | /library/metadata/10501 |
ratingImage |
string | ➖ | N/A | rottentomatoes://image.rating.ripe |
media |
operations.GetSearchResultsMedia[] | ➖ | N/A | |
genre |
operations.GetSearchResultsGenre[] | ➖ | N/A | |
director |
operations.GetSearchResultsDirector[] | ➖ | N/A | |
writer |
operations.GetSearchResultsWriter[] | ➖ | N/A | |
country |
operations.GetSearchResultsCountry[] | ➖ | N/A | |
role |
operations.GetSearchResultsRole[] | ➖ | N/A |