[dt] replace 'parse_compat' with compat workaround
This commit is contained in:
@@ -218,7 +218,7 @@ class NewgroundsExtractor(Extractor):
|
||||
"description": text.unescape(extr(':description" content="', '"')),
|
||||
"type" : "art",
|
||||
"_type" : "i",
|
||||
"date" : dt.parse_compat(extr(
|
||||
"date" : dt.parse_iso(extr(
|
||||
'itemprop="datePublished" content="', '"')),
|
||||
"rating" : extr('class="rated-', '"'),
|
||||
"url" : full('src="', '"'),
|
||||
@@ -268,7 +268,7 @@ class NewgroundsExtractor(Extractor):
|
||||
"description": text.unescape(extr(':description" content="', '"')),
|
||||
"type" : "audio",
|
||||
"_type" : "a",
|
||||
"date" : dt.parse_compat(extr(
|
||||
"date" : dt.parse_iso(extr(
|
||||
'itemprop="datePublished" content="', '"')),
|
||||
"url" : extr('{"url":"', '"').replace("\\/", "/"),
|
||||
"index" : text.parse_int(index),
|
||||
@@ -287,7 +287,7 @@ class NewgroundsExtractor(Extractor):
|
||||
src = src.replace("\\/", "/")
|
||||
formats = ()
|
||||
type = extr(',"description":"', '"')
|
||||
date = dt.parse_compat(extr(
|
||||
date = dt.parse_iso(extr(
|
||||
'itemprop="datePublished" content="', '"'))
|
||||
if type:
|
||||
type = type.rpartition(" ")[2].lower()
|
||||
|
||||
Reference in New Issue
Block a user