|
1d50bbe790
|
In MarshalJSON() for Song a string field Duration was removed, just msec left.
|
2023-10-07 05:11:58 +04:00 |
|
|
9beb179cc0
|
SongList.Current() now returns a copy of Song instead of a pointer.
|
2023-10-05 18:52:18 +04:00 |
|
|
eeadbc4f96
|
To a SongList a method UpdateCurrentMaxListeners() was added, it checks and updates max listeners for a current song in a thread safe manner.
|
2023-10-05 18:04:15 +04:00 |
|
|
b659464118
|
For Song.ArtistTitle() a comment was updated.
|
2023-10-05 18:02:33 +04:00 |
|
|
1c6d288cd7
|
In song.go: added comments; embed sync.Mutex in SongList instead of having it as a field; changed a json field name duration_milliseconds to duration_msec; listMaxLen field was renamed to maxLen; Len() was renamed to MaxLen().
|
2023-10-04 18:10:17 +04:00 |
|
|
0bf81f93c8
|
In Song.DurationString() updated format.
|
2023-10-02 18:08:57 +04:00 |
|
|
9757f5f748
|
Oh, time.Duration works a little differently...
|
2023-10-02 03:55:17 +04:00 |
|
|
f1e2eca876
|
Added a DurationString() method for a Song that returns time in format 04:05 or 15:04:05 if a song is one hour or more long.
|
2023-10-02 03:52:26 +04:00 |
|
|
010774d775
|
Return a formatted string alongside with duration in milliseconds.
|
2023-10-02 03:48:31 +04:00 |
|
|
f9d85d45f5
|
Song_ was renamed to Song. Also added Len() method to a SongList.
|
2023-10-02 03:18:30 +04:00 |
|
|
c054c3b32e
|
Added a duration field to Song_ struct.
|
2023-10-02 01:26:22 +04:00 |
|
|
2be516236b
|
SongList.Current() will return nil if current song wasn't set yet.
|
2023-10-01 22:02:54 +04:00 |
|
|
6ebe24fa5a
|
In SongList Add check if a current song wasn't set yet.
|
2023-10-01 06:37:47 +04:00 |
|
|
8c1e46900a
|
Added a SongList and Song_ types. An underscore is temporary and is because there is an another Song type in an icecast.go file.
|
2023-10-01 05:42:55 +04:00 |
|