Skip to content

Commit fff2404

Browse files
committed
[Feeds] feedservice should convert texts to markdown
1 parent 1eb5492 commit fff2404

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

mygpo/data/feeddownloader.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ def verify_podcast_url(podcast_url):
116116

117117

118118
def _fetch_feed(podcast_url):
119-
params = {'url': podcast_url}
119+
params = {
120+
'url': podcast_url,
121+
'process_text': 'markdown',
122+
}
120123
headers = {
121124
'Accept': 'application/json',
122125
}
123-
# markdown and other parameters?
124126
url = urljoin(settings.FEEDSERVICE_URL, 'parse')
125127
r = requests.get(url, params=params, headers=headers, timeout=10)
126128
return r.json()[0]

0 commit comments

Comments
 (0)