Skip to content

Commit

Permalink
[Feeds] feedservice should convert texts to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoegl committed Jun 11, 2015
1 parent 9520b0c commit 95a9bf8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mygpo/data/feeddownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 95a9bf8

Please sign in to comment.