yichahucha / surge

Some useful scripts.
GNU General Public License v3.0
2.5k stars 482 forks source link

Netflix 正则建议 #86

Closed chouchoui closed 3 years ago

chouchoui commented 3 years ago

Netflix评分经常失效,当前使用过的两个host有时候只有重装后第一次访问能匹配到 ios.prod.ftl.netflix.com ios-h2.prod.ftl.netflix.com

今天又抓到一个 ios-cell6.prod.ftl.netflix.com

建议修改匹配正则为

/^https?:\/\/ios(-.*)?\.prod\.ftl\.netflix\.com\/iosui\/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D/

/^https?:\/\/ios(-.*)?\.prod\.ftl\.netflix\.com\/iosui\/warmer/.+type=show-ath/

目前个人使用下面的配置能使评分脚本有效

[Script]
nf_rating.js = type=http-request,pattern=^https?:\/\/ios(-.*)?\.prod\.ftl\.netflix\.com\/iosui\/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating.js

nf_rating.js = type=http-response,requires-body=1,pattern=^https?:\/\/ios(-.*)?\.prod\.ftl\.netflix\.com\/iosui\/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating.js

# 单集评分
nf_rating_season.js = type=http-response,pattern=^https?:\/\/ios(-.*)?\.prod\.ftl\.netflix\.com\/iosui\/warmer/.+type=show-ath,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating_season.js

[MITM]
hostname = %APPEND% ios-*.prod.ftl.netflix.com, ios.prod.ftl.netflix.com
yichahucha commented 3 years ago

感谢 已更新