From ebe01566c0a31815452a3b45db30b67b4c3e2c01 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 1 Feb 2019 16:34:14 +0800 Subject: [PATCH] Fix: Not show Error Msg when not living --- liveDownloader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liveDownloader.py b/liveDownloader.py index 7e370b5..22287aa 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -23,7 +23,7 @@ class downloader(XiGuaLiveApi): self.updPlayList() def updPlayList(self): - if api.isLive: + if self.isLive: if "stream_url" not in self._rawRoomInfo: if self.playlist is None: self.apiChangedError("无法获取直播链接") @@ -31,6 +31,8 @@ class downloader(XiGuaLiveApi): else: self.playlist = self._rawRoomInfo["stream_url"]["alternate_pull_url"] self.playlist = self.playlist.replace("_uhd","").replace("_sd","").replace("_ld","") + else: + print("未开播,等待开播") def onLike(self, user): pass