Files
plexjs/docs/sdk/models/operations/getrecentlyaddedlibrarymedia.md

10 KiB
Raw Blame History

GetRecentlyAddedLibraryMedia

Example Usage

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

let value: GetRecentlyAddedLibraryMedia = {
  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",
    },
  ],
};

Fields

Field Type Required Description Example
id number N/A 120345
duration number N/A 7474422
bitrate number N/A 3623
width number N/A 1920
height number N/A 804
aspectRatio number N/A 2.35
audioChannels number N/A 6
audioCodec string N/A ac3
videoCodec string N/A h264
videoResolution number N/A 1080
container string N/A mp4
videoFrameRate string N/A 24p
optimizedForStreaming number N/A 0
has64bitOffsets boolean N/A
videoProfile string N/A high
part operations.GetRecentlyAddedLibraryPart[] N/A