Add m3u cache expiration in hour

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@exoscale.ch>
This commit is contained in:
Pierre-Emmanuel Jacquier
2019-10-01 22:03:56 +00:00
parent 468ae7fb64
commit 2618b46cfe
3 changed files with 28 additions and 19 deletions

View File

@@ -14,13 +14,14 @@ type HostConfiguration struct {
// ProxyConfig Contain original m3u playlist and HostConfiguration
type ProxyConfig struct {
Playlist *m3u.Playlist
HostConfig *HostConfiguration
XtreamUser string
XtreamPassword string
XtreamBaseURL string
RemoteURL *url.URL
HTTPS bool
Playlist *m3u.Playlist
HostConfig *HostConfiguration
XtreamUser string
XtreamPassword string
XtreamBaseURL string
M3UCacheExpiration int
RemoteURL *url.URL
HTTPS bool
//XXX Very unsafe
User, Password string
}