remove explicit (sub)category keywords

This commit is contained in:
Mike Fährmann
2016-09-25 14:22:07 +02:00
parent a347d50ef5
commit 19c2d4ff6f
43 changed files with 26 additions and 104 deletions

View File

@@ -61,8 +61,6 @@ class ImgchiliImageExtractor(ImgchiliExtractor):
parts = name2.split("in the gallery ")
name = parts[0] if not parts[0].endswith("...") else name1
return text.nameext_from_url(name, {
"category": self.category,
"subcategory": self.subcategory,
"image-id": self.match.group(1),
"title": text.unescape(parts[-1]) if len(parts) > 1 else ""
})
@@ -86,8 +84,6 @@ class ImgchiliAlbumExtractor(ImgchiliExtractor):
def get_job_metadata(self, page):
title = text.extract(page, "<h1>", "</h1>")[0]
return {
"category": self.category,
"subcategory": self.subcategory,
"title": text.unescape(title),
"key": self.match.group(1),
}