Optionalclient: ClientThe owning client, stored for later convenience calls.
OptionalbitrateBitrate in kbit/s.
OptionalclientThe client that created this model, used by convenience methods.
OptionalcodecAudio codec, for example mp3 or aac.
OptionaldirectWhether the link is already direct.
OptionaldirectCached resolved direct link, populated by DownloadInfo.getDirectLink.
OptionaldownloadURL of the XML document describing how to build the direct link.
OptionalgainWhether gain is applied.
OptionalpreviewWhether this is a preview rather than the full track.
StaticdeStaticdeDeserialize a list of DownloadInfo, optionally resolving direct links.
The list of download variants.
Resolve the short-lived direct download URL from the info XML.
The resolved URL is valid for roughly one minute; requesting it later yields an HTTP 410. The result is cached in DownloadInfo.directLink.
The direct download URL.
Protectedrequire
One download variant of a track (codec + bitrate), plus the means to resolve a short-lived direct file URL.