system/ytparser.cpp: try to fix category, if more than one present

This commit is contained in:
[CST] Focus
2013-05-30 09:57:13 +04:00
parent bc16511047
commit f4a07e730e

View File

@@ -305,6 +305,7 @@ bool cYTFeedParser::parseFeedXml(std::string &answer)
vinfo.description = getXmlData(media).c_str();
}
else if (name == "media:category") {
if (vinfo.category.size() < 3)
vinfo.category = getXmlData(media).c_str();
}
else if (name == "yt:videoid") {