feat: frontpage now playing default fill
This commit is contained in:
parent
6fd8071a05
commit
61266647a9
|
|
@ -825,12 +825,14 @@
|
||||||
"Main front page"
|
"Main front page"
|
||||||
;; Register this visitor for geo stats (captures real IP from X-Forwarded-For)
|
;; Register this visitor for geo stats (captures real IP from X-Forwarded-For)
|
||||||
(register-web-listener)
|
(register-web-listener)
|
||||||
|
(let ((now-playing-stats (icecast-now-playing *stream-base-url*)))
|
||||||
(clip:process-to-string
|
(clip:process-to-string
|
||||||
(load-template "front-page")
|
(load-template "front-page")
|
||||||
:title "ASTEROID RADIO"
|
:title "ASTEROID RADIO"
|
||||||
:station-name "ASTEROID RADIO"
|
:station-name "ASTEROID RADIO"
|
||||||
:status-message "🟢 LIVE - Broadcasting asteroid music for hackers"
|
:status-message "🟢 LIVE - Broadcasting asteroid music for hackers"
|
||||||
:listeners "0"
|
:listeners "0"
|
||||||
|
:connection-error (not now-playing-stats)
|
||||||
:stream-quality "128kbps MP3"
|
:stream-quality "128kbps MP3"
|
||||||
:stream-base-url *stream-base-url*
|
:stream-base-url *stream-base-url*
|
||||||
:curated-channel-name (get-curated-channel-name)
|
:curated-channel-name (get-curated-channel-name)
|
||||||
|
|
@ -840,7 +842,7 @@
|
||||||
:now-playing-artist "The Void"
|
:now-playing-artist "The Void"
|
||||||
:now-playing-track "Silence"
|
:now-playing-track "Silence"
|
||||||
:now-playing-album "Startup Sounds"
|
:now-playing-album "Startup Sounds"
|
||||||
:now-playing-duration "∞"))
|
:now-playing-duration "∞")))
|
||||||
|
|
||||||
;; Frameset wrapper for persistent player mode
|
;; Frameset wrapper for persistent player mode
|
||||||
(define-page frameset-wrapper #@"/frameset" ()
|
(define-page frameset-wrapper #@"/frameset" ()
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,9 @@
|
||||||
</c:if>
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="now-playing" class="now-playing"></div>
|
<div id="now-playing" class="now-playing">
|
||||||
|
<c:h>(asteroid::load-template "partial/now-playing")</c:h>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Recently Played Tracks -->
|
<!-- Recently Played Tracks -->
|
||||||
<div id="recently-played-panel" class="recently-played-panel">
|
<div id="recently-played-panel" class="recently-played-panel">
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
<span class="star-icon">☆</span>
|
<span class="star-icon">☆</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<p>Listeners: <span lquery="(text listeners)">1</span></p>
|
<p>Listeners: <span id="current-listeners" lquery="(text listeners)">1</span></p>
|
||||||
</c:using>
|
|
||||||
<input type="hidden" id="current-track-id" lquery="(val track-id)" value="">
|
<input type="hidden" id="current-track-id" lquery="(val track-id)" value="">
|
||||||
<input type="hidden" id="favorite-count-value" lquery="(val favorite-count)" value="0">
|
<input type="hidden" id="favorite-count-value" lquery="(val favorite-count)" value="0">
|
||||||
<p class="favorite-count" id="favorite-count-display"></p>
|
<p class="favorite-count" id="favorite-count-display"></p>
|
||||||
|
</c:using>
|
||||||
</c:then>
|
</c:then>
|
||||||
<c:else>
|
<c:else>
|
||||||
<c:if test="connection-error">
|
<c:if test="connection-error">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue