[pixiv] fix filter for 'type=all'

This commit is contained in:
Mike Fährmann
2018-05-29 10:30:41 +02:00
parent 12797e3b1f
commit a62bd81e9b

View File

@@ -127,7 +127,8 @@ class PixivUserExtractor(PixivExtractor):
qdict = text.parse_query(self.query)
if "type" in qdict:
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:
tag = text.unquote(qdict["tag"]).lower()
works = filter(self._has_tag(tag), works)