[slideshare] fix 'description' extraction
This commit is contained in:
@@ -79,10 +79,9 @@ class SlidesharePresentationExtractor(GalleryExtractor):
|
|||||||
views = extr('content="UserPageVisits:', '"')
|
views = extr('content="UserPageVisits:', '"')
|
||||||
|
|
||||||
if descr.endswith("…"):
|
if descr.endswith("…"):
|
||||||
alt_descr = extr(
|
alt_descr = extr('id="slideshow-description-text"', '</p>')
|
||||||
'id="slideshow-description-text" class="notranslate">', '</p>')
|
|
||||||
if alt_descr:
|
if alt_descr:
|
||||||
descr = text.remove_html(alt_descr).strip()
|
descr = text.remove_html(alt_descr.partition(">")[2]).strip()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"user": self.user,
|
"user": self.user,
|
||||||
|
|||||||
Reference in New Issue
Block a user