rename safe_int to parse_int; move parse_* to text module
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"""Extract images from https://www.slideshare.net/"""
|
||||
|
||||
from .common import Extractor, Message
|
||||
from .. import text, util
|
||||
from .. import text
|
||||
|
||||
|
||||
class SlideshareExtractor(Extractor):
|
||||
@@ -78,7 +78,7 @@ class SlideshareExtractor(Extractor):
|
||||
"presentation": self.presentation,
|
||||
"title": text.unescape(title.strip()),
|
||||
"description": text.unescape(descr),
|
||||
"views": util.safe_int(views.replace(",", "")),
|
||||
"views": text.parse_int(views.replace(",", "")),
|
||||
"published": published,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user