mirror of
https://codeberg.org/hyperreal/archive-fandom-wiki
synced 2024-11-01 08:33:06 +01:00
fix: check for .css file extension
This commit is contained in:
parent
cae250a5d7
commit
6459a87d17
@ -96,7 +96,7 @@ class FandomWiki:
|
||||
css_pages = list()
|
||||
|
||||
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_pages.append(css_url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user