[kemonoparty] fix DMs extraction (#2008)

This commit is contained in:
Mike Fährmann
2022-01-25 23:16:13 +01:00
parent 2bf554a896
commit a2eecc6aa8

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2021 Mike Fährmann
# Copyright 2021-2022 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -180,7 +180,7 @@ class KemonopartyExtractor(Extractor):
for dm in text.extract_iter(page, "<article", "</article>"):
dms.append({
"body": text.unescape(text.extract(
dm, '<div class="dm-card__content">', '</div>',
dm, '<pre>', '</pre></section>',
)[0].strip()),
"date": text.extract(dm, 'datetime="', '"')[0],
})