|
@ -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) |
|
|