Remove size suffix for content pages

This commit is contained in:
I-Al-Istannen
2023-08-27 11:42:25 +02:00
parent 2184ac8040
commit b54b3b979c
2 changed files with 3 additions and 1 deletions

View File

@ -377,7 +377,8 @@ class IliasPage:
for link in links:
url = self._abs_url_from_link(link)
name = _sanitize_path_name(link.getText().strip().replace("\t", ""))
name = re.sub(r"\([\d,.]+ [MK]B\)", "", link.getText()).strip().replace("\t", "")
name = _sanitize_path_name(name)
if "file_id" not in url:
_unexpected_html_warning()