better description

This commit is contained in:
j 2015-03-15 02:23:52 +05:30
parent 16a955f310
commit 9dd0c2416e

View file

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