From 95a9bf88a79d20a49f9077ab84a4e9b13f894f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Thu, 11 Jun 2015 21:40:50 +0200 Subject: [PATCH] [Feeds] feedservice should convert texts to markdown --- mygpo/data/feeddownloader.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mygpo/data/feeddownloader.py b/mygpo/data/feeddownloader.py index 0605da247..ea3cd77dd 100755 --- a/mygpo/data/feeddownloader.py +++ b/mygpo/data/feeddownloader.py @@ -116,11 +116,13 @@ def verify_podcast_url(podcast_url): def _fetch_feed(podcast_url): - params = {'url': podcast_url} + params = { + 'url': podcast_url, + 'process_text': 'markdown', + } headers = { 'Accept': 'application/json', } - # markdown and other parameters? url = urljoin(settings.FEEDSERVICE_URL, 'parse') r = requests.get(url, params=params, headers=headers, timeout=10) return r.json()[0]