Support podcast items that use x-audio/* mime-types, like x-audio/m4a. Fixes issue 3448

This commit is contained in:
David Sansome 2013-02-05 22:22:52 +11:00
parent 6019afb097
commit 4f4110c03a
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@ void PodcastParser::ParseItem(QXmlStreamReader* reader, Podcast* ret) const {
parts[2].toInt());
}
} else if (name == "enclosure") {
if (reader->attributes().value("type").toString().startsWith("audio/")) {
const QString type = reader->attributes().value("type").toString();
if (type.startsWith("audio/") || type.startsWith("x-audio/")) {
episode.set_url(QUrl::fromEncoded(reader->attributes().value("url").toString().toAscii()));
}
Utilities::ConsumeCurrentElement(reader);