Skip to content

Commit 8f9bb58

Browse files
committed
fix:更新版本
1 parent 3179a1d commit 8f9bb58

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
git config --global user.name 'github-actions'
2626
git config --global user.email '[email protected]'
27-
TAG="v0.0.30-$(date +'%Y%m%d%H%M%S')"
27+
TAG="v0.0.31-$(date +'%Y%m%d%H%M%S')"
2828
echo "TAG=${TAG}" >> $GITHUB_ENV
2929
git tag $TAG
3030
git push origin $TAG

model/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package model
22

3-
const UnlockTestsVersion = "v0.0.30"
3+
const UnlockTestsVersion = "v0.0.31"
44

55
var EnableLoger = false
66

transnation/YouTube.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,17 @@ func YoutubeCDN(c *http.Client) model.Result {
9191
}
9292
body = body[:i]
9393
i = strings.Index(body, "-")
94-
9594
result1, result2, result3 := utils.CheckDNS(hostname)
9695
unlockType := utils.GetUnlockType(result1, result2, result3)
9796
if i == -1 {
98-
// 没有 - 分隔符,可能是 fra15s37 或 xxx.xxx 格式
9997
i = strings.Index(body, ".")
10098
if i != -1 {
101-
// 有 . 分隔符,如 server.location
10299
return model.Result{
103100
Name: name, Status: model.StatusYes, Info: "Youtube Video Server",
104101
Region: findAirCode(body[i+1:]),
105102
UnlockType: unlockType,
106103
}
107104
} else {
108-
// 没有 . 分隔符,直接提取字母部分作为机场代码,如 fra15s37
109105
return model.Result{
110106
Name: name, Status: model.StatusYes, Info: "Youtube Video Server",
111107
Region: findAirCode(body),

0 commit comments

Comments
 (0)