fixup! Big refacto

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
Pierre-Emmanuel Jacquier
2019-02-26 20:31:14 +01:00
parent 2ed7c2f0e6
commit 8138861e71
2 changed files with 2 additions and 2 deletions

View File

@@ -8,8 +8,7 @@ type HostConfiguration struct {
Port int64
}
// ProxyConfig Contain original m3u playlist and HostConfiguration,
// if track is not nil current track selected in playlist
// ProxyConfig Contain original m3u playlist and HostConfiguration
type ProxyConfig struct {
Playlist *m3u.Playlist
HostConfig *HostConfiguration

View File

@@ -9,6 +9,7 @@ import (
)
// Marshall m3u.playlist struct to m3u file
// And replace original track url by proxy url
func Marshall(p *m3u.Playlist, config *config.HostConfiguration) (string, error) {
result := "#EXTM3U\n"
for _, track := range p.Tracks {