@ctrl/plex
    Preparing search index...

    Function fetchItem

    • Load the specified key to find and build the first item with the specified tag and attrs. If no tag or attrs are specified then the first item in the result set is returned.

      Type Parameters

      • T

      Parameters

      • server: PlexServer
      • ekey: string | number

        Path in Plex to fetch items from. If an int is passed in, the key will be translated to /library/metadata/. This allows fetching an item only knowing its key-id.

      • options: Record<string, ItemFilterValue> | undefined
      • Cls: PlexItemConstructor<T>
      • Optionalparent: unknown

      Returns Promise<T>