Compare commits
No commits in common. "6350a7851c3cbd19fee4c58142e1da0b66cde834" and "5b3e12ec4b85a8c13ad9d43184403a0c644f4515" have entirely different histories.
6350a7851c
...
5b3e12ec4b
@ -188,7 +188,6 @@ def embed_youtube(text):
|
||||
or url.hostname
|
||||
in [
|
||||
"www.youtube.com",
|
||||
"music.youtube.com",
|
||||
"youtube.com",
|
||||
"www.youtube-nocookie.com",
|
||||
"youtube-nocookie.com",
|
||||
@ -339,7 +338,7 @@ def embed_url(text):
|
||||
attachments = {}
|
||||
|
||||
for element in soup.find_all("a"):
|
||||
if "href" in element.attrs and element.attrs["href"].startswith("http") and ("data-noembed" not in element.attrs):
|
||||
if "href" in element.attrs and element.attrs["href"].startswith("http"):
|
||||
page_url = urlparse(element.attrs["href"])
|
||||
page = get_url_content(element.attrs["href"])
|
||||
if page:
|
||||
@ -565,4 +564,3 @@ class PythonExtension(Extension):
|
||||
return "".join(to_write)
|
||||
|
||||
return str(fn(caller()))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user