def stishkipirozhki_ru(sync_date, source, entry): p = Pasty() p.text = strip(entry['content'][0]['value']) p.date = to_date(entry['published_parsed']) if not p.date: p.date = sync_date p.source = source.url return p
def pirozhki_ru_livejournal_com(sync_date, source, entry): p = Pasty() p.text = strip(entry['summary_detail']['value']) p.date = to_date(entry['published_parsed']) if not p.date: p.date = sync_date p.source = source.url if len(p.text) > 255: return None return p