Changeset 21522ae in Klonkt for src/services/PlaylistService.js
- Timestamp:
- 05/20/2026 10:14:01 PM (4 months ago)
- Branches:
- main
- Children:
- 353c39c
- Parents:
- 46f23fd
- git-author:
- Robin Genis <roboburr@…> (05/20/2026 10:13:26 PM)
- git-committer:
- Robin Genis <roboburr@…> (05/20/2026 10:14:01 PM)
- File:
-
- 1 edited
-
src/services/PlaylistService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/PlaylistService.js
r46f23fd r21522ae 77 77 * Returns null if the playlist doesn't exist. 78 78 * 79 * ` signUrl` is an optional callback that takes a media filename and returns80 * a (possibly signed) URL. If not provided, tracks come back with no `url`81 * and the caller has to resolve them. The render pipeline in posts.js82 * always passes signUrl.83 */ 84 static get(siteId, id, signUrl) {79 * `urlFor` is an optional callback that takes a media filename and returns 80 * its stream URL. If not provided, tracks come back with no `url` and the 81 * caller has to resolve them. The render pipeline in posts.js always passes 82 * urlFor. 83 */ 84 static get(siteId, id, urlFor) { 85 85 id = this.normalizeId(id); 86 86 if (!id) return null; … … 117 117 cover: t.cover_url || p.cover_url || '', 118 118 duration: t.duration || 0, 119 url: signUrl ? signUrl(t.filename).url: null,119 url: urlFor ? urlFor(t.filename) : null, 120 120 })), 121 121 };
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)