def searchYoutube(self, msg): m = self.ytUrl.search(msg) if m: ytId = m.group(6) clog.debug('(searchYoutube) matched: %s' % ytId, sys) d = apiClient.requestYtApi(ytId) d.addCallbacks(self.doSendChat, self.errYtInfo)
def collectYtQueue(self, mId): # need another function because popleft() evaluates immediatly return apiClient.requestYtApi(self.ytq.popleft(), 'check')