recognize audio enclosures of type audio/mp3
This commit is contained in:
parent
d965ff9f8e
commit
66cdbe7a54
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ def process_xml_feed_for_new_entries(feed, content, backfill, now):
|
||||||
title = None
|
title = None
|
||||||
|
|
||||||
for link in p_entry.get('links', []):
|
for link in p_entry.get('links', []):
|
||||||
if link.type == 'audio/mpeg':
|
if link.type == 'audio/mpeg' or link.type == 'audio/mp3':
|
||||||
audio = AUDIO_ENCLOSURE_TMPL.format(href=link.get('href'))
|
audio = AUDIO_ENCLOSURE_TMPL.format(href=link.get('href'))
|
||||||
content = (content or '') + audio
|
content = (content or '') + audio
|
||||||
if (link.type == 'video/x-m4v'
|
if (link.type == 'video/x-m4v'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue