Skip to content

Latest commit

 

History

History
129 lines (124 loc) · 40.4 KB

getrecentlyaddedlibrarymetadata.md

File metadata and controls

129 lines (124 loc) · 40.4 KB

GetRecentlyAddedLibraryMetadata

Example Usage

import { GetRecentlyAddedLibraryMetadata } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetRecentlyAddedLibraryMetadata = {
  librarySectionID: 1,
  librarySectionTitle: "Movies",
  librarySectionUUID: "322a231a-b7f7-49f5-920f-14c61199cd30",
  ratingKey: 59398,
  key: "/library/metadata/59398",
  guid: "plex://movie/5e161a83bea6ac004126e148",
  studio: "Marvel Studios",
  type: "movie",
  title: "Ant-Man and the Wasp: Quantumania",
  contentRating: "PG-13",
  summary:
    "Scott Lang and Hope Van Dyne along with Hank Pym and Janet Van Dyne explore the Quantum Realm where they interact with strange creatures and embark on an adventure that goes beyond the limits of what they thought was possible.",
  rating: 4.7,
  audienceRating: 8.3,
  year: 2023,
  tagline: "Witness the beginning of a new dynasty.",
  thumb: "/library/metadata/59398/thumb/1681888010",
  art: "/library/metadata/59398/art/1681888010",
  duration: 7474422,
  originallyAvailableAt: new Date("2023-02-15T00:00:00Z"),
  addedAt: 1681803215,
  updatedAt: 1681888010,
  audienceRatingImage: "rottentomatoes://image.rating.upright",
  chapterSource: "media",
  primaryExtraKey: "/library/metadata/59399",
  ratingImage: "rottentomatoes://image.rating.rotten",
  media: [
    {
      id: 120345,
      duration: 7474422,
      bitrate: 3623,
      width: 1920,
      height: 804,
      aspectRatio: 2.35,
      audioChannels: 6,
      audioCodec: "ac3",
      videoCodec: "h264",
      videoResolution: 1080,
      container: "mp4",
      videoFrameRate: "24p",
      optimizedForStreaming: 0,
      videoProfile: "high",
      part: [
        {
          id: 120353,
          key: "/library/parts/120353/1681803203/file.mp4",
          duration: 7474422,
          file:
            "/movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man.and.the.Wasp.Quantumania.2023.1080p.mp4",
          size: 3395307162,
          container: "mp4",
          hasThumbnail: 1,
          videoProfile: "high",
        },
      ],
    },
  ],
  genre: [
    {
      tag: "Comedy",
    },
  ],
  director: [
    {
      tag: "Peyton Reed",
    },
  ],
  writer: [
    {
      tag: "Jeff Loveness",
    },
  ],
  country: [
    {
      tag: "United States of America",
    },
  ],
  role: [
    {
      tag: "Paul Rudd",
    },
  ],
};

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
ratingKey number N/A 59398
key string N/A /library/metadata/59398
guid string N/A plex://movie/5e161a83bea6ac004126e148
studio string N/A Marvel Studios
type string N/A movie
title string N/A Ant-Man and the Wasp: Quantumania
contentRating string N/A PG-13
summary string N/A Scott Lang and Hope Van Dyne along with Hank Pym and Janet Van Dyne explore the Quantum Realm where they interact with strange creatures and embark on an adventure that goes beyond the limits of what they thought was possible.
rating number N/A 4.7
audienceRating number N/A 8.3
year number N/A 2023
tagline string N/A Witness the beginning of a new dynasty.
thumb string N/A /library/metadata/59398/thumb/1681888010
art string N/A /library/metadata/59398/art/1681888010
duration number N/A 7474422
originallyAvailableAt Date N/A 2023-02-15 00:00:00 +0000 UTC
addedAt number N/A 1681803215
updatedAt number N/A 1681888010
audienceRatingImage string N/A rottentomatoes://image.rating.upright
chapterSource string N/A media
primaryExtraKey string N/A /library/metadata/59399
ratingImage string N/A rottentomatoes://image.rating.rotten
media operations.GetRecentlyAddedLibraryMedia[] N/A
genre operations.GetRecentlyAddedLibraryGenre[] N/A
director operations.GetRecentlyAddedLibraryDirector[] N/A
writer operations.GetRecentlyAddedLibraryWriter[] N/A
country operations.GetRecentlyAddedLibraryCountry[] N/A
role operations.GetRecentlyAddedLibraryRole[] N/A