Compare commits

...

2 Commits

Author SHA1 Message Date
MkQtS
b11bfaa138 sina: add weibopay.com (#3311) 2026-02-27 13:11:31 +08:00
MkQtS
afb9e6cad0 main.go: clean up (#3310)
[skip ci]
2026-02-27 13:09:18 +08:00
2 changed files with 3 additions and 5 deletions

View File

@@ -19,13 +19,14 @@ th.weibo.com @!cn
tw.weibo.com @!cn
us.weibo.com @!cn
videoself.cn
wbimg.com
wbimg.cn
wbimg.com
wcdn.cn
weibo.cn
weibo.com
weibo.com.cn
weibocdn.com
weibopay.com
xhaiwai.com
# Ads/tracking

View File

@@ -353,11 +353,8 @@ func (p *Processor) resolveList(plname string) error {
roughMap[dentry.Plain] = dentry
}
for _, inc := range pl.Inclusions {
if _, exist := p.plMap[inc.Source]; !exist {
return fmt.Errorf("list %q includes a non-existent list: %q", plname, inc.Source)
}
if err := p.resolveList(inc.Source); err != nil {
return err
return fmt.Errorf("failed to resolve inclusion %q: %w", inc.Source, err)
}
for _, ientry := range p.finalMap[inc.Source] {
if isMatchAttrFilters(ientry, inc) { // Add included entries