mirror of
https://github.com/v2fly/domain-list-community.git
synced 2025-12-21 10:00:05 +07:00
Compare commits
5 Commits
2025122010
...
2025122012
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d014f46c20 | ||
|
|
6f3acc3ba9 | ||
|
|
24c2f80f91 | ||
|
|
c9cdb42bf0 | ||
|
|
425c41c171 |
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -5,6 +5,11 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**/README.md"
|
- "**/README.md"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
|||||||
3
data/askdiandian
Normal file
3
data/askdiandian
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# 点点 Ai
|
||||||
|
askdiandian.com
|
||||||
|
diandianlife.top
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
include:askdiandian
|
||||||
include:deepseek
|
include:deepseek
|
||||||
include:doubao
|
include:doubao
|
||||||
include:trae # MarsCode
|
include:trae # MarsCode
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ include:copymanga
|
|||||||
include:dailymotion
|
include:dailymotion
|
||||||
include:dandanzan
|
include:dandanzan
|
||||||
include:dazn
|
include:dazn
|
||||||
|
include:deezer
|
||||||
include:deviantart
|
include:deviantart
|
||||||
include:discoveryplus
|
include:discoveryplus
|
||||||
include:disney
|
include:disney
|
||||||
|
|||||||
2
data/deezer
Normal file
2
data/deezer
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
deezer.com
|
||||||
|
dzcdn.net
|
||||||
@@ -322,5 +322,5 @@ include:windy
|
|||||||
include:xdty
|
include:xdty
|
||||||
include:xingrz
|
include:xingrz
|
||||||
|
|
||||||
# 沉浸式翻译
|
# 沉浸式翻译 (国际版)
|
||||||
immersivetranslate.com
|
immersivetranslate.com
|
||||||
|
|||||||
@@ -352,6 +352,8 @@ i8tq.com
|
|||||||
tq121.com.cn
|
tq121.com.cn
|
||||||
weather.com.cn
|
weather.com.cn
|
||||||
weatherdt.com
|
weatherdt.com
|
||||||
|
## 沉浸式翻译 (中国版)
|
||||||
|
immersivetranslate.cn
|
||||||
## 掌阅
|
## 掌阅
|
||||||
ireader.com
|
ireader.com
|
||||||
zhangyue.com
|
zhangyue.com
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
include:askdiandian
|
||||||
|
|
||||||
xhscdn.com
|
xhscdn.com
|
||||||
xhscdn.net
|
xhscdn.net
|
||||||
|
xhslink.com
|
||||||
xiaohongshu.com
|
xiaohongshu.com
|
||||||
|
|||||||
17
main.go
17
main.go
@@ -8,7 +8,6 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
router "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
|
router "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
|
||||||
@@ -161,20 +160,8 @@ func parseAttribute(attr string) (*router.Domain_Attribute, error) {
|
|||||||
return &attribute, fmt.Errorf("invalid attribute: %s", attr)
|
return &attribute, fmt.Errorf("invalid attribute: %s", attr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trim attribute prefix `@` character
|
attribute.Key = strings.ToLower(attr[1:]) // Trim attribute prefix `@` character
|
||||||
attr = attr[1:]
|
attribute.TypedValue = &router.Domain_Attribute_BoolValue{BoolValue: true}
|
||||||
parts := strings.Split(attr, "=")
|
|
||||||
if len(parts) == 1 {
|
|
||||||
attribute.Key = strings.ToLower(parts[0])
|
|
||||||
attribute.TypedValue = &router.Domain_Attribute_BoolValue{BoolValue: true}
|
|
||||||
} else {
|
|
||||||
attribute.Key = strings.ToLower(parts[0])
|
|
||||||
intv, err := strconv.Atoi(parts[1])
|
|
||||||
if err != nil {
|
|
||||||
return &attribute, fmt.Errorf("invalid attribute: %s: %v", attr, err)
|
|
||||||
}
|
|
||||||
attribute.TypedValue = &router.Domain_Attribute_IntValue{IntValue: int64(intv)}
|
|
||||||
}
|
|
||||||
return &attribute, nil
|
return &attribute, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user