diff --git a/publisher/api.json b/publisher/api.json index 0496b081..3e05aa23 100644 --- a/publisher/api.json +++ b/publisher/api.json @@ -6954,7 +6954,7 @@ "AssetId": { "name": "asset_id", "in": "path", - "description": "Unique identifier for the asset.", + "description": "Unique identifier for the asset. Each asset in an episode's set of assets has an ID starting from 1 (e.g., the first asset has asset_id=1, the second asset has asset_id=2, and so on).", "required": true, "schema": { "type": "string" @@ -6962,4 +6962,4 @@ } } } -} \ No newline at end of file +} diff --git a/publisher/guides/templates.mdx b/publisher/guides/templates.mdx index fc5e6dd0..01d464e7 100644 --- a/publisher/guides/templates.mdx +++ b/publisher/guides/templates.mdx @@ -133,6 +133,24 @@ To use them in another template, you need to import the macros before using them {% endraw %} ``` +### Filters + +Twig filters can be used to filter the list of episodes. For example, this filter selects only the episodes from the year 2024: + +```handlebars +{% set filtered_episodes = podcast.episodes|filter(episode => episode.publicationDate.format('Y') == "2024") %} + +