Creates a new Feed instance with a title.
The title of the feed.
Adds an extra top-level property (e.g. a custom sub-collection) to the feed.
The key of the property.
The value of the property.
The Feed instance (for chaining).
Adds a link to the navigation collection. This is a convenience method for links to other OPDS 2.0 feeds.
The URL of the linked feed.
The title of the link.
Optionalrel: string
The relation of the link (optional).
The media type (default: application/opds+json).
This instance (for chaining).
Adds one or more links to the navigation collection. Each link must have a title.
The navigation links to add.
This instance (for chaining).
Adds a pagination link to the feed. Any existing link with the same relation is replaced.
The relation (first, previous, next or last).
The URL of the page.
The Feed instance (for chaining).
Adds multiple pagination links to the feed. Existing links with the same relation are replaced.
Object with relations as keys and URLs as values.
The Feed instance (for chaining).
Adds one or more publications.
The publications to add.
This instance (for chaining).
Adds multiple publications.
The publications to add.
This instance (for chaining).
Adds a search link to the feed.
The URI template of the search, which must contain a query parameter (e.g. /search{?query}).
The media type of the search results (default: application/opds+json).
The Feed instance (for chaining).
Adds a self link. Any existing self link is replaced.
The URL of the collection.
The media type (default: application/opds+json).
This instance (for chaining).
Gets the extra top-level properties of the feed.
The extra properties.
Gets a pagination link of the feed.
The relation (first, previous, next or last).
The link, or undefined if not found.
Gets the search link of the feed.
The search link, or undefined if not found.
Sets the description.
The description text.
This instance (for chaining).
Sets the identifier of the feed.
The identifier (URI) of the feed.
The Feed instance (for chaining).
Merges the given fields into the metadata.
The metadata fields to set.
This instance (for chaining).
Sets a specific metadata field.
The key of the metadata field.
The value to set.
This instance (for chaining).
Sets the last modification date.
The date in ISO 8601 format.
This instance (for chaining).
Sets the total number of items in the collection.
The number of items.
This instance (for chaining).
Sets the pagination metadata of the feed.
Total number of items, items per page and the current page.
The Feed instance (for chaining).
Sets the subtitle.
The subtitle.
This instance (for chaining).
Converts the feed to an OPDS 2.0 JSON string.
Serialization options.
The feed as a JSON string.
Used by JSON.stringify to serialize the feed.
Converts the feed to a plain object following the OPDS 2.0 JSON structure. Blank values are removed.
Serialization options (only baseUrl is used).
The feed as a plain object.
Checks the feed against the requirements of the OPDS 2.0 specification.
A list of problems. An empty list means the feed is valid.
StaticfromCreates a Feed instance from OPDS 2.0 JSON.
The JSON string or an already parsed object.
A new Feed instance.
An OPDS 2.0 catalog feed.