From e44eff06453b863389b25454fd9a3259f09d1a7e Mon Sep 17 00:00:00 2001 From: xteve-project Date: Mon, 29 Mar 2021 19:47:56 +0200 Subject: [PATCH] Add go.mod and go.sum. Require go v1.16 --- go.mod | 9 +++++++++ go.sum | 16 ++++++++++++++++ src/authentication.go | 2 +- src/data.go | 4 ++-- src/internal/m3u-parser/test_list_1.m3u | 8 +++++++- src/m3u.go | 2 +- src/provider.go | 2 +- src/struct-system.go | 2 +- src/update.go | 2 +- src/webserver.go | 2 +- src/xepg.go | 2 +- xteve.go | 2 +- 12 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..3ae8132 --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module xteve + +go 1.16 + +require ( + github.com/gorilla/websocket v1.4.2 // indirect + github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect + github.com/koron/go-ssdp v0.0.2 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..55714e3 --- /dev/null +++ b/go.sum @@ -0,0 +1,16 @@ +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA= +github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= +github.com/koron/go-ssdp v0.0.2 h1:fL3wAoyT6hXHQlORyXUW4Q23kkQpJRgEAYcZB5BR71o= +github.com/koron/go-ssdp v0.0.2/go.mod h1:XoLfkAiA2KeZsYh4DbHxD7h3nR2AZNqVQOa+LJuqPYs= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20200904194848-62affa334b73 h1:MXfv8rhZWmFeqX3GNZRsd6vOLoaCHjYEX3qkRo3YBUA= +golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/src/authentication.go b/src/authentication.go index 2f7d398..1b15876 100644 --- a/src/authentication.go +++ b/src/authentication.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "../src/internal/authentication" + "xteve/src/internal/authentication" ) func activatedSystemAuthentication() (err error) { diff --git a/src/data.go b/src/data.go index 0b895f1..3ea9bdc 100644 --- a/src/data.go +++ b/src/data.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "../src/internal/authentication" - "../src/internal/imgcache" + "xteve/src/internal/authentication" + "xteve/src/internal/imgcache" ) // Einstellungen ändern (WebUI) diff --git a/src/internal/m3u-parser/test_list_1.m3u b/src/internal/m3u-parser/test_list_1.m3u index db5c125..478c95d 100644 --- a/src/internal/m3u-parser/test_list_1.m3u +++ b/src/internal/m3u-parser/test_list_1.m3u @@ -1,7 +1,13 @@ #EXTM3U url-tvg="http://example.com/file.xml" x-tvg-url="http://example.com/xteve.xml" -#EXTINF:0 channelID="1" tvg-chno="1" tvg-name="Channel.1" tvg-id="tvg.id.1" tvg-logo="https://example/logo.png" group-title="Group 1",Channel 1 +#EXTINF:0 channelID="1" tvg-chno="1" tvg-name="Channel.1" tvg-id="tvg.id.1" tvg-logo="https://example/logo.png" group-title="Group 1", Channel 1 http://example.com/stream/1 #EXTINF:0 channelID="2" tvg-chno="2" tvg-name="Channel.2" tvg-id="tvg.id.2" tvg-logo="https://example/logo.png" group-title="Group 2",Channel 2 #123 http://example.com/stream/2 + +#EXTINF:123, Sample artist - Sample title +http://example.com/stream/3 + +#EXTINF:321,Example Artist - Example title +http://example.com/stream/4 diff --git a/src/m3u.go b/src/m3u.go index 30a21c5..efb5231 100644 --- a/src/m3u.go +++ b/src/m3u.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - m3u "../src/internal/m3u-parser" + m3u "xteve/src/internal/m3u-parser" ) // Playlisten parsen diff --git a/src/provider.go b/src/provider.go index 1e8cb27..f376b3a 100644 --- a/src/provider.go +++ b/src/provider.go @@ -8,7 +8,7 @@ import ( "strings" "time" - m3u "../src/internal/m3u-parser" + m3u "xteve/src/internal/m3u-parser" ) // fileType: Welcher Dateityp soll aktualisiert werden (m3u, hdhr, xml) | fileID: Update einer bestimmten Datei (Provider ID) diff --git a/src/struct-system.go b/src/struct-system.go index d4695cd..595f4d2 100644 --- a/src/struct-system.go +++ b/src/struct-system.go @@ -1,6 +1,6 @@ package src -import "../src/internal/imgcache" +import "xteve/src/internal/imgcache" // SystemStruct : Beinhaltet alle Systeminformationen type SystemStruct struct { diff --git a/src/update.go b/src/update.go index 7cd2493..2c13d92 100644 --- a/src/update.go +++ b/src/update.go @@ -7,7 +7,7 @@ import ( "io/ioutil" "net/http" - up2date "../src/internal/up2date/client" + up2date "xteve/src/internal/up2date/client" "reflect" ) diff --git a/src/webserver.go b/src/webserver.go index 7997099..9e519cb 100644 --- a/src/webserver.go +++ b/src/webserver.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "../src/internal/authentication" + "xteve/src/internal/authentication" "github.com/gorilla/websocket" ) diff --git a/src/xepg.go b/src/xepg.go index 7e9b06d..97c7734 100644 --- a/src/xepg.go +++ b/src/xepg.go @@ -16,7 +16,7 @@ import ( "strings" "time" - "../src/internal/imgcache" + "xteve/src/internal/imgcache" ) // Provider XMLTV Datei überprüfen diff --git a/xteve.go b/xteve.go index 8597416..b6bd180 100644 --- a/xteve.go +++ b/xteve.go @@ -13,7 +13,7 @@ import ( "runtime" "strings" - "./src" + "xteve/src" ) // GitHubStruct : GitHub Account. Über diesen Account werden die Updates veröffentlicht