diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7f1ab37..f617fab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: run: | git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' - TAG="v0.0.3-$(date +'%Y%m%d%H%M%S')" + TAG="v0.0.4-$(date +'%Y%m%d%H%M%S')" git tag $TAG git push origin $TAG env: diff --git a/commediatests/netflix/netflix.go b/commediatests/netflix/netflix.go index 3fdd96d..4dc98eb 100644 --- a/commediatests/netflix/netflix.go +++ b/commediatests/netflix/netflix.go @@ -1,24 +1,26 @@ package netflix import ( - "flag" - "os" - "github.com/oneclickvirt/CommonMediaTests/commediatests/netflix/printer" "github.com/oneclickvirt/CommonMediaTests/commediatests/netflix/verify" ) -var cmtnFlag = flag.NewFlagSet("cmtn", flag.ContinueOnError) -var custom = cmtnFlag.String("custom", "", "自定义测试NF影片ID\n绝命毒师的ID是70143836") -var address = cmtnFlag.String("address", "", "本机网卡的IP") -var proxy = cmtnFlag.String("proxy", "", "代理地址") +// var cmtnFlag = flag.NewFlagSet("cmtn", flag.ContinueOnError) +// var custom = cmtnFlag.String("custom", "", "自定义测试NF影片ID\n绝命毒师的ID是70143836") +// var address = cmtnFlag.String("address", "", "本机网卡的IP") +// var proxy = cmtnFlag.String("proxy", "", "代理地址") func Netflix(language string) (string, error) { - cmtnFlag.Parse(os.Args[1:]) + // cmtnFlag.Parse(os.Args[1:]) + // r := verify.NewVerify(verify.Config{ + // LocalAddr: *address, + // Custom: *custom, + // Proxy: *proxy, + // }) r := verify.NewVerify(verify.Config{ - LocalAddr: *address, - Custom: *custom, - Proxy: *proxy, + LocalAddr: "", + Custom: "", + Proxy: "", }) res, _ := printer.Print(*r, language) return res, nil diff --git a/commediatests/version.go b/commediatests/version.go index 2ef1ae5..ccc0bc7 100644 --- a/commediatests/version.go +++ b/commediatests/version.go @@ -1,4 +1,4 @@ package commediatests -const ComMediaTestsVersion = "v0.0.3" +const ComMediaTestsVersion = "v0.0.4" var EnableLoger bool