Members

(static, constant) MASKED_VALUE

What a hidden value shows instead.

Default Value
  • ***

Methods

(static) isServerTokenName(name) → {boolean}

The query names a Jellyfin URL carries the user's access token in. The server's StreamInfo writes api_key at 10.7.7 and ApiKey at 10.11.0, and its authorization reads both.

Parameters:
NameTypeDescription
namestring
Returns:
Type: 
boolean

(static) isServerUrl(url, serverUrl) → {boolean}

True when the URL is this Jellyfin server's: relative, or the same host and port.

Parameters:
NameTypeDescription
urldynamic

the URL to place

serverUrldynamic

the signed-in server's URL

Returns:
Type: 
boolean

(static) isShortcutPath(itemPath) → {boolean}

True when an item's own path is a .strm file: the server's own test for a shortcut (BaseVideoResolver sets IsShortcut from the extension), which it does not send to clients. Its media source then describes the text file: its Size is the .strm file's.

Parameters:
NameTypeDescription
itemPathdynamic

the item's Path, as the server reports it

Returns:
Type: 
boolean

(static) maskUrlSecrets(url, serverUrl) → {string}

The URL with its secrets hidden: a server URL's token values, an upstream URL's every query value and any user information. Anything that is not a URL (a file path) is returned as is.

Parameters:
NameTypeDescription
urldynamic
serverUrldynamic

the signed-in server's URL

Returns:
Type: 
string

(static) upstreamHost(url, serverUrl) → {string}

The host a stream comes from, or "" when it is this server's or there is no URL.

Parameters:
NameTypeDescription
urldynamic

the URL being played

serverUrldynamic

the signed-in server's URL

Returns:
Type: 
string