[pixiv] fix filter for 'type=all'
This commit is contained in:
@@ -127,7 +127,8 @@ class PixivUserExtractor(PixivExtractor):
|
|||||||
qdict = text.parse_query(self.query)
|
qdict = text.parse_query(self.query)
|
||||||
if "type" in qdict:
|
if "type" in qdict:
|
||||||
type_ = qdict["type"].lower()
|
type_ = qdict["type"].lower()
|
||||||
works = filter(self._is_type(type_), works)
|
if type_ != "all":
|
||||||
|
works = filter(self._is_type(type_), works)
|
||||||
if "tag" in qdict:
|
if "tag" in qdict:
|
||||||
tag = text.unquote(qdict["tag"]).lower()
|
tag = text.unquote(qdict["tag"]).lower()
|
||||||
works = filter(self._has_tag(tag), works)
|
works = filter(self._has_tag(tag), works)
|
||||||
|
|||||||
Reference in New Issue
Block a user