Example #1
0
 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)
Example #2
0
 def collectYtQueue(self, mId):
     # need another function because popleft() evaluates immediatly
     return apiClient.requestYtApi(self.ytq.popleft(), 'check')