generated from Nemesis/Exemple
) en trop
This commit is contained in:
parent
9fbf410ca8
commit
86bc74e680
1 changed files with 1 additions and 1 deletions
|
@ -2062,7 +2062,7 @@ def invidious(room, event): # convertit un lien youtube en lien invidious
|
||||||
rmod = modules[room.room_id, 'invidious']
|
rmod = modules[room.room_id, 'invidious']
|
||||||
except:
|
except:
|
||||||
modules[room.room_id, 'invidious'] = False
|
modules[room.room_id, 'invidious'] = False
|
||||||
if (modules[room.room_id, 'invidious']) and not event['sender'] == bot.client.user_id):
|
if (modules[room.room_id, 'invidious'] and not event['sender'] == bot.client.user_id):
|
||||||
url = event['content']['body']
|
url = event['content']['body']
|
||||||
try:
|
try:
|
||||||
res = re.sub(r"^.*\?v=([^& ]*).*$", r"\1", url)
|
res = re.sub(r"^.*\?v=([^& ]*).*$", r"\1", url)
|
||||||
|
|
Loading…
Reference in a new issue