Skip to content

Instantly share code, notes, and snippets.

@spinitron
Created October 29, 2018 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spinitron/21f8c13a2b256f5b89baecd768108ef8 to your computer and use it in GitHub Desktop.
Save spinitron/21f8c13a2b256f5b89baecd768108ef8 to your computer and use it in GitHub Desktop.
Spinitron template variables
Variable Description
%now% Current time in W3C form, e.g. 2010-04-15T13:42:32-05:00
%now[format]% Current time formatted using the php date() function, e.g. %now[g:ia]%
%an% Artist
%sn% Song name
%sc% Song composer
%sp% Spin timestamp in W3C form, e.g. 2010-04-15T13:42:32-05:00
%sp\[format]% Spin timestamp formatted using the php date() function, e.g. %sp[g:ia]%
%se% Spin note
%sd% Duration in seconds
%dur% Duration in M:SS format
%dn% Release (album) title
%df% Release medium (format) e.g. LP, CD
%dr% Release year
%da% Add date
%dl% Genre
%ne% New
%rq% Request
%lo% Local
%ua% Cover art URL
%ln% Label name (publiher)
%wn% Playlist title
%pi% Playlist ID
%si% Spin ID
%wc% Playlist category
%ww% Show weekdays, e.g. "Mon, Wed, Fri"
%wo% Playlist start time in HH:MM:SS format
%wf% Playlist end time in HH:MM:SS format
%ws% Playlist since (year)
%wd% Playlist description
%dj% DJ name
%st% Station title
%tpl% Playlist URL
%tdj% DJ page URL
%tsh% Show page URL (if any)
%tst% Station URL
%tsp% Spin URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment