forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-05 16:44:22 +02:00
parent 89423077ef
commit 28389b0d3f
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ def submit_post(v):
if "twitter.com" in domain:
try: embed = requests.get("https://publish.twitter.com/oembed", params={"url":url, "omit_script":"t"}).json()["html"]
except: pass
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)