fix: check for .css file extension

This commit is contained in:
Jeffrey Serio 2023-09-20 08:31:42 -05:00
parent cae250a5d7
commit 6459a87d17

View File

@ -96,7 +96,7 @@ class FandomWiki:
css_pages = list() css_pages = list()
for css in soup.find_all("link"): for css in soup.find_all("link"):
if css.attrs.get("href"): if css.attrs.get("href") and ".css" in css.attrs.get("href"):
css_url = urljoin(self.breezewiki_url, css.attrs.get("href")) css_url = urljoin(self.breezewiki_url, css.attrs.get("href"))
css_pages.append(css_url) css_pages.append(css_url)