diff --git a/.gitignore b/.gitignore index 43282ab..0db02f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ bin/* !bin/.keep -.vscode \ No newline at end of file +.vscode +*.pug.go \ No newline at end of file diff --git a/web/index.jade.go b/web/index.jade.go deleted file mode 100644 index 99c6b89..0000000 --- a/web/index.jade.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by "jade.go"; DO NOT EDIT. - -package web - -import ( - "dwelling-radio/internal/radio" - "io" -) - -const ( - index__0 = `Arav's dwelling / Radio
filelistplaylist (.m3u)direct linkdirect link (http)direct link (Tor)direct link (I2P)XiphOGG 128 Kb/s` - index__2 = `

Now playing: ` - index__3 = `

Current/peak listeners: ` - index__4 = ` / ` - index__5 = `

Notice: information updates every 45 seconds. But you can it forcibly.

` - index__6 = `

The largest number of simultaneous listeners was 7 at , and the song was "Röyksopp - 49 Percent".

Privacy statements

Logs are collected and include access date and time, IP-address, User-Agent, referer URL, request. This website makes use of JavaScript to update a radio status and last 10 songs list.

` - index__7 = `

On-air since

` - index__10 = `

Radio is offline.

` - index__11 = `

Last 10 songs

` - index__12 = `
` - index__13 = `` - index__14 = `` - index__15 = `` - index__16 = `` - index__19 = `` -) - -func Index(mainSite string, status *radio.IcecastStatus, songs *[]radio.Song, wr io.Writer) { - buffer := &WriterAsBuffer{wr} - - buffer.WriteString(index__0) - WriteEscString(mainSite, buffer) - buffer.WriteString(index__1) - - if status.ServerStartDate != "" { - buffer.WriteString(index__7) - WriteEscString(status.ServerStartISO8601, buffer) - buffer.WriteString(index__8) - WriteEscString(status.ServerStartDate, buffer) - buffer.WriteString(index__9) - - } else { - buffer.WriteString(index__10) - - } - buffer.WriteString(index__2) - WriteEscString(status.SongName, buffer) - buffer.WriteString(index__3) - WriteInt(int64(status.Listeners), buffer) - buffer.WriteString(index__4) - WriteInt(int64(status.ListenerPeak), buffer) - buffer.WriteString(index__5) - - if len(*songs) > 0 { - buffer.WriteString(index__11) - - for _, song := range *songs { - buffer.WriteString(index__13) - WriteEscString(song.Time, buffer) - buffer.WriteString(index__14) - if song.Listeners != "0" { - buffer.WriteString(index__15) - WriteEscString(song.Listeners, buffer) - buffer.WriteString(index__14) - } else { - buffer.WriteString(index__19) - - } - buffer.WriteString(index__15) - WriteEscString(song.Song, buffer) - buffer.WriteString(index__16) - - } - buffer.WriteString(index__12) - - } - buffer.WriteString(index__6) - -}