[slideshare] fix 'description' extraction

pull/2757/head
Mike Fährmann 2 years ago
parent 31e868fca1
commit f2e59cc906
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -79,10 +79,9 @@ class SlidesharePresentationExtractor(GalleryExtractor):
views = extr('content="UserPageVisits:', '"')
if descr.endswith(""):
alt_descr = extr(
'id="slideshow-description-text" class="notranslate">', '</p>')
alt_descr = extr('id="slideshow-description-text"', '</p>')
if alt_descr:
descr = text.remove_html(alt_descr).strip()
descr = text.remove_html(alt_descr.partition(">")[2]).strip()
return {
"user": self.user,

Loading…
Cancel
Save