|
@@ -190,7 +190,7 @@ def parse_amazon(msg):
|
|
)
|
|
)
|
|
|
|
|
|
articles_text = msg_text.split('Bestellte(r) Artikel:')[1].split('_' * 10)[0].strip()
|
|
articles_text = msg_text.split('Bestellte(r) Artikel:')[1].split('_' * 10)[0].strip()
|
|
- for article_text in articles_text.split('\n\n'):
|
|
|
|
|
|
+ for article_text in re.split(ur'\n\t*\n', articles_text):
|
|
article_match = re.match(
|
|
article_match = re.match(
|
|
ur' *(?P<name>.*)\n'
|
|
ur' *(?P<name>.*)\n'
|
|
+ ur'( *von (?P<authors>.*)\n)?'
|
|
+ ur'( *von (?P<authors>.*)\n)?'
|