diff --git a/pkg/config/config.go b/pkg/config/config.go index 7b2fbe7..68e8850 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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 diff --git a/pkg/m3u/m3u.go b/pkg/m3u/m3u.go index 425ac62..ea53d7f 100644 --- a/pkg/m3u/m3u.go +++ b/pkg/m3u/m3u.go @@ -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 {