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

Origin commit data
------------------
Branch: ni/coolstream
Commit: f4a07e730e
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-05-30 (Thu, 30 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-05-30 09:57:13 +04:00
parent 7b834ba2cc
commit 02497d67b5

View File

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