remotes/1693045480750635534/spooky-22
Aevann1 2021-09-06 21:54:41 +02:00
parent 38efcf1ab6
commit d15e68f4f7
1 changed files with 2 additions and 1 deletions

View File

@ -626,7 +626,8 @@ def submit_post(v):
except: embed = None
elif "youtu" in domain:
yt_id = re.match(re.compile("^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|shorts\/|\&v=)([^#\&\?]*).*"), url).group(2)
try: yt_id = re.match(re.compile("^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|shorts\/|\&v=)([^#\&\?]*).*"), url).group(2)
except: embed = None
if not yt_id or len(yt_id) != 11: embed = None
else:
params = parse_qs(urlparse(url).query)