You've already forked XiguaLiveDanmakuHelper
							
							录播助手更新:避免因为未开播而导致出现错误提示
This commit is contained in:
		@@ -23,13 +23,14 @@ class downloader(XiGuaLiveApi):
 | 
				
			|||||||
        self.updPlayList()
 | 
					        self.updPlayList()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def updPlayList(self):
 | 
					    def updPlayList(self):
 | 
				
			||||||
        if "stream_url" not in self._rawRoomInfo:
 | 
					        if api.isLive:
 | 
				
			||||||
            if self.playlist is None:
 | 
					            if "stream_url" not in self._rawRoomInfo:
 | 
				
			||||||
                self.apiChangedError("无法获取直播链接")
 | 
					                if self.playlist is None:
 | 
				
			||||||
                self.playlist = False
 | 
					                    self.apiChangedError("无法获取直播链接")
 | 
				
			||||||
        else:
 | 
					                    self.playlist = False
 | 
				
			||||||
            self.playlist = self._rawRoomInfo["stream_url"]["alternate_pull_url"]
 | 
					                else:
 | 
				
			||||||
            self.playlist = self.playlist.replace("_uhd","").replace("_sd","").replace("_ld","")
 | 
					                    self.playlist = self._rawRoomInfo["stream_url"]["alternate_pull_url"]
 | 
				
			||||||
 | 
					                    self.playlist = self.playlist.replace("_uhd","").replace("_sd","").replace("_ld","")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def onLike(self, user):
 | 
					    def onLike(self, user):
 | 
				
			||||||
        pass
 | 
					        pass
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user