From a31f2e710fd677a8c5aa44ae810b11026b65e0c1 Mon Sep 17 00:00:00 2001 From: wbt5 Date: Sun, 16 May 2021 12:26:26 +0800 Subject: [PATCH] :bug: Fix zhanqi.py (#167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复国外IP获取cdn_host时,返回多个域名导致解包错误的问题。 --- zhanqi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhanqi.py b/zhanqi.py index e18beaa..35378cb 100644 --- a/zhanqi.py +++ b/zhanqi.py @@ -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 = {