) en trop

This commit is contained in:
nemesis 2020-05-15 11:46:08 +02:00
parent 9fbf410ca8
commit 86bc74e680

View file

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