Skip to main content

Function: releaseUrl()

releaseUrl(template, season): string

Defined in: src/core/releases.ts:213

Fill the asset URL for one season (sdv-py spec.render_url).

Parameters​

template​

string

The manifest URL with {season} and / or {season + N} tokens (N a non-negative integer; whitespace around + allowed). Every occurrence is replaced.

season​

number

The season year to substitute.

Returns​

string

The URL with each token replaced by season + N (N = 0 for a bare {season}).

Example​

releaseUrl("a/sched_{season + 1}.parquet", 2024); // "a/sched_2025.parquet"