[slideshare] fix 'description' extraction
This commit is contained in:
parent
31e868fca1
commit
f2e59cc906
@ -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…
x
Reference in New Issue
Block a user