Big refactoring (#27)

Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
This commit is contained in:
Pierre-Emmanuel Jacquier
2019-12-13 01:29:07 +01:00
committed by GitHub
parent cb94ac2db7
commit 520fb7fd14
27 changed files with 3229 additions and 721 deletions

View File

@@ -2,8 +2,6 @@ package config
import (
"net/url"
"github.com/jamesnetherton/m3u"
)
// HostConfiguration containt host infos
@@ -14,7 +12,6 @@ type HostConfiguration struct {
// ProxyConfig Contain original m3u playlist and HostConfiguration
type ProxyConfig struct {
Playlist *m3u.Playlist
HostConfig *HostConfiguration
XtreamUser string
XtreamPassword string
@@ -24,6 +21,5 @@ type ProxyConfig struct {
CustomEndpoint string
RemoteURL *url.URL
HTTPS bool
//XXX Very unsafe
User, Password string
User, Password string
}