This commit is contained in:
Jerry Yan 2020-01-10 21:34:21 +08:00
parent 0f81dfd030
commit 179dc18ec8

View File

@ -324,6 +324,10 @@ class downloader(XiGuaLiveApi):
global streamUrl global streamUrl
if self.isLive and "stream_url" in self._rawRoomInfo: if self.isLive and "stream_url" in self._rawRoomInfo:
self.playlist = self._rawRoomInfo["stream_url"]["flv_pull_url"] self.playlist = self._rawRoomInfo["stream_url"]["flv_pull_url"]
if type(self.playlist) is dict:
for _ in self.playlist.values():
self.playlist = _
break
self.playlist = self.playlist.replace("_uhd", "").replace("_sd", "").replace("_ld", "") self.playlist = self.playlist.replace("_uhd", "").replace("_sd", "").replace("_ld", "")
streamUrl = self.playlist streamUrl = self.playlist
else: else: