Compare commits

...

8 Commits

Author SHA1 Message Date
深鸣
9807b5b0a9 category-scholar-cn: add medalink.cn (#3091) 2025-12-20 23:41:14 +08:00
深鸣
920ea4a055 dmit: add new entry (#3090) 2025-12-20 23:32:06 +08:00
hzhex
9f6800b6b2 Remove 'habr' from category-ru (#3087)
Removed 'include:habr' from the category-ru file.

Reasons:

1) habr.com isn't affiliated with Russia directly (even though the habr.com IS hosted in Russia, it's cdn domain - habrastorage.org is hosted in Estonia)
2) the site itself contains a lot of geoblocked articles which can't be accessed without a foreign proxy - so it being in category-ru can lead to routing mishaps in cases such as routing category-ru sites to DIRECT on the client
2025-12-20 20:18:34 +08:00
Loyalsoldier
d014f46c20 Fix: limit workflow concurrency to avoid potential overlap releases (#3088)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-20 20:14:05 +08:00
チセ
6f3acc3ba9 Chore: remove unused key-value attribute feature (#3076)
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2025-12-20 19:38:46 +08:00
MkQtS
24c2f80f91 add deezer (#3085) 2025-12-20 18:51:41 +08:00
1054009064
c9cdb42bf0 update xiaohongshu (#3084) 2025-12-20 18:35:44 +08:00
Zeehan2005
425c41c171 geolocation-cn: add immersivetranslate.cn (#3083) 2025-12-20 18:27:54 +08:00
13 changed files with 28 additions and 18 deletions

View File

@@ -5,6 +5,11 @@ on:
- master
paths-ignore:
- "**/README.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
name: Build

3
data/askdiandian Normal file
View File

@@ -0,0 +1,3 @@
# 点点 Ai
askdiandian.com
diandianlife.top

View File

@@ -1,3 +1,4 @@
include:askdiandian
include:deepseek
include:doubao
include:trae # MarsCode

View File

@@ -24,6 +24,7 @@ include:comodo
include:corel
include:dell
include:digitalocean
include:dmit
include:drweb
include:duolingo
include:faronics

View File

@@ -19,6 +19,7 @@ include:copymanga
include:dailymotion
include:dandanzan
include:dazn
include:deezer
include:deviantart
include:discoveryplus
include:disney

View File

@@ -18,7 +18,6 @@ ru.net
include:category-gov-ru
include:habr
include:mailru-group
include:okko
include:ozon

View File

@@ -11,7 +11,11 @@ ancientbooks.cn # 籍合网
apabi.com
bjinfobank.com # 高校数据财经库
blyun.com # 百链
# 北京百链网源信息技术有限公司
blyun.com # 百链云图书馆
medalink.cn # 百链学术搜索
chinabooktrading.com # 中国历代典籍总目
cidp.com.cn # CIDP制造业数字资源平台
cnbksy.com # 全国报刊索引

2
data/deezer Normal file
View File

@@ -0,0 +1,2 @@
deezer.com
dzcdn.net

2
data/dmit Normal file
View File

@@ -0,0 +1,2 @@
dmit.io
dmit.sh

View File

@@ -322,5 +322,5 @@ include:windy
include:xdty
include:xingrz
# 沉浸式翻译
# 沉浸式翻译 (国际版)
immersivetranslate.com

View File

@@ -352,6 +352,8 @@ i8tq.com
tq121.com.cn
weather.com.cn
weatherdt.com
## 沉浸式翻译 (中国版)
immersivetranslate.cn
## 掌阅
ireader.com
zhangyue.com

View File

@@ -1,3 +1,6 @@
include:askdiandian
xhscdn.com
xhscdn.net
xhslink.com
xiaohongshu.com

17
main.go
View File

@@ -8,7 +8,6 @@ import (
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
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)
}
// Trim attribute prefix `@` character
attr = attr[1:]
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)}
}
attribute.Key = strings.ToLower(attr[1:]) // Trim attribute prefix `@` character
attribute.TypedValue = &router.Domain_Attribute_BoolValue{BoolValue: true}
return &attribute, nil
}