Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,9 @@ def fetch_metadata(url):
|
|
90 |
else:
|
91 |
site_name = infer_source_from_url(url)
|
92 |
|
|
|
|
|
|
|
93 |
# Formatting the result
|
94 |
markdown_text = f"[{og_title}]({url}) ({site_name})"
|
95 |
return markdown_text
|
|
|
90 |
else:
|
91 |
site_name = infer_source_from_url(url)
|
92 |
|
93 |
+
# Correct the site_name
|
94 |
+
site_name = correct_source_names(site_name)
|
95 |
+
|
96 |
# Formatting the result
|
97 |
markdown_text = f"[{og_title}]({url}) ({site_name})"
|
98 |
return markdown_text
|