update youtube.py, remove references to skybot
This commit is contained in:
parent
b3f8556fbc
commit
acb59d8bc5
3 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ def onjoin(paraml, conn=None, bot=None):
|
|||
time.sleep(1)
|
||||
|
||||
# HTTP Useragent
|
||||
http.ua_skybot = 'CloudBot - http://git.io/cloudbot'
|
||||
http.ua_cloudbot = 'CloudBot - http://git.io/cloudbot'
|
||||
|
||||
# Stay-alive code
|
||||
stayalive = conn.conf.get('stayalive')
|
||||
|
|
|
@ -8,7 +8,7 @@ from util import hook, http
|
|||
locale.setlocale(locale.LC_ALL, '')
|
||||
|
||||
youtube_re = (r'(?:youtube.*?(?:v=|/v/)|youtu\.be/|yooouuutuuube.*?id=)'
|
||||
'([-_a-z0-9]+)', re.I)
|
||||
'([-_a-zA-Z0-9]+)', re.I)
|
||||
|
||||
base_url = 'http://gdata.youtube.com/feeds/api/'
|
||||
url = base_url + 'videos/%s?v=2&alt=jsonc'
|
||||
|
|
Reference in a new issue