def getStatus(self): headers = { 'Content-Type': 'application/json', 'Referer': 'https://www.pornhublive.com/' } r = requests.get('https://manifest-server.naiadsystems.com/live/s:' + self.username + '.json?last=load&format=mp4-hls', headers=headers) if r.status_code == 200: self.lastInfo = r.json() return Bot.Status(r.status_code)
def getStatus(self): r = requests.get(self.getVideoUrl()) return Bot.Status(r.status_code)