only ignore title

This commit is contained in:
j 2015-03-15 02:17:33 +05:30
parent cdea161d2f
commit c4c0c40825

View file

@ -57,7 +57,7 @@ def get_data(url):
if part.strip(): if part.strip():
txt.append(part) txt.append(part)
if txt: if txt:
if len(txt) > 1: if len(txt) > 1 and txt[0].strip() == m.get('title'):
txt = txt[1:] txt = txt[1:]
m['description'] = '\n\n'.join(txt).strip() m['description'] = '\n\n'.join(txt).strip()
y = re.compile('\((\d{4})\)').findall(data) y = re.compile('\((\d{4})\)').findall(data)