mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 14:12:30 +02:00
Add doctype header to forum threads
This should fix mimetype detection on most systems and is more relevant now that the report is clickable
This commit is contained in:
@ -38,6 +38,7 @@ ambiguous situations.
|
||||
- Crawling of nested courses
|
||||
- Downloading of links with no target URL
|
||||
- Handle row flex on description pages
|
||||
- Add `<!DOCTYPE html>` heading to forum threads to fix mime type detection
|
||||
|
||||
## 3.6.0 - 2024-10-23
|
||||
|
||||
|
@ -750,7 +750,8 @@ instance's greatest bottleneck.
|
||||
return
|
||||
|
||||
async with maybe_dl as (bar, sink):
|
||||
content = element.title_tag.prettify()
|
||||
content = "<!DOCTYPE html>\n"
|
||||
content += element.title_tag.prettify()
|
||||
content += element.content_tag.prettify()
|
||||
sink.file.write(content.encode("utf-8"))
|
||||
sink.done()
|
||||
|
Reference in New Issue
Block a user