You've already forked XiguaLiveDanmakuHelper
							
							细节修改
This commit is contained in:
		@@ -328,8 +328,8 @@ class downloader(XiGuaLiveApi):
 | 
				
			|||||||
        _result = super(downloader, self).updRoomInfo(force)
 | 
					        _result = super(downloader, self).updRoomInfo(force)
 | 
				
			||||||
        if _prev_status != self.isLive and not self.isLive:
 | 
					        if _prev_status != self.isLive and not self.isLive:
 | 
				
			||||||
            resetDelay()
 | 
					            resetDelay()
 | 
				
			||||||
 | 
					        broadcaster = self.broadcaster
 | 
				
			||||||
        if _result:
 | 
					        if _result:
 | 
				
			||||||
            broadcaster = self.broadcaster
 | 
					 | 
				
			||||||
            if self.isLive:
 | 
					            if self.isLive:
 | 
				
			||||||
                self.updPlayList()
 | 
					                self.updPlayList()
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,9 +5,10 @@ import Common
 | 
				
			|||||||
import os
 | 
					import os
 | 
				
			||||||
import requests
 | 
					import requests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					session = requests.session()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def download():
 | 
					def download():
 | 
				
			||||||
    session = requests.session()
 | 
					 | 
				
			||||||
    while Common.api.isLive and not Common.forceNotDownload:
 | 
					    while Common.api.isLive and not Common.forceNotDownload:
 | 
				
			||||||
        if not Common.streamUrl:
 | 
					        if not Common.streamUrl:
 | 
				
			||||||
            Common.appendError("Download with No StreamUrl Specific")
 | 
					            Common.appendError("Download with No StreamUrl Specific")
 | 
				
			||||||
@@ -68,7 +69,7 @@ def upload():
 | 
				
			|||||||
            Common.appendError(e.__str__())
 | 
					            Common.appendError(e.__str__())
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
        finally:
 | 
					        finally:
 | 
				
			||||||
            time.sleep(120)
 | 
					            time.sleep(90)
 | 
				
			||||||
        i = Common.uploadQueue.get()
 | 
					        i = Common.uploadQueue.get()
 | 
				
			||||||
    Common.appendUploadStatus("Upload Daemon Quiting")
 | 
					    Common.appendUploadStatus("Upload Daemon Quiting")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user