def get_slug(self, meta, response): meta['slug'] = util.shorturl(meta['douban_id']) return meta
def set_slug(self, meta, response): meta["slug"] = util.shorturl(meta["douban_id"]) return meta