mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +01:00
Support podcast items that use x-audio/* mime-types, like x-audio/m4a. Fixes issue 3448
This commit is contained in:
parent
6019afb097
commit
4f4110c03a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user