Skip to content

Commit

Permalink
v0.0.4 - 修复内置的解析
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jul 4, 2024
1 parent 1b575e7 commit 6a91cdd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 13 additions & 11 deletions commediatests/netflix/netflix.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion commediatests/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package commediatests

const ComMediaTestsVersion = "v0.0.3"
const ComMediaTestsVersion = "v0.0.4"
var EnableLoger bool

0 comments on commit 6a91cdd

Please sign in to comment.