Fix : self.Files not empty while next live start

This commit is contained in:
Jerry Yan 2019-02-21 10:34:31 +08:00 committed by GitHub
parent dee41be85d
commit 767b4728b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,9 @@ class downloader(XiGuaLiveApi):
super(downloader, self).updRoomInfo()
if self.isLive:
self.updPlayList()
else:
print("未开播,等待开播")
self.files = []
def updPlayList(self):
if self.isLive:
@ -32,9 +35,7 @@ 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("未开播,等待开播")
self.files = []
def onLike(self, user):
pass