recognize audio enclosures of type audio/mp3

This commit is contained in:
Kyle Mahan 2015-05-12 15:15:46 +00:00
parent d965ff9f8e
commit 66cdbe7a54

View file

@ -349,7 +349,7 @@ def process_xml_feed_for_new_entries(feed, content, backfill, now):
title = None
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'))
content = (content or '') + audio
if (link.type == 'video/x-m4v'