1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-07-30 13:22:12 +08:00

🐛 Fix zhanqi.py (#167)

修复国外IP获取cdn_host时,返回多个域名导致解包错误的问题。
This commit is contained in:
wbt5 2021-05-16 12:26:26 +08:00
parent 61e84a9eca
commit a31f2e710f
No known key found for this signature in database
GPG Key ID: 92D5C42E815A2BD6

View File

@ -33,7 +33,7 @@ class ZhanQi:
# 获取cdn_host
res = self.s.get('https://umc.danuoyi.alicdn.com/dns_resolve_https?app=zqlive&host_key=alhdl-cdn.zhanqi.tv')
cdn_host, = res.json().get('redirect_domain')
cdn_host, *_ = res.json().get('redirect_domain')
# 获取chain_key
data = {