mirror of
https://github.com/pierre-emmanuelJ/iptv-proxy.git
synced 2026-03-15 17:09:16 +01:00
fixup! Big refacto
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user