mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -305,7 +305,8 @@ bool cYTFeedParser::parseFeedXml(std::string &answer)
|
|||||||
vinfo.description = getXmlData(media).c_str();
|
vinfo.description = getXmlData(media).c_str();
|
||||||
}
|
}
|
||||||
else if (name == "media:category") {
|
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") {
|
else if (name == "yt:videoid") {
|
||||||
#ifdef DEBUG_PARSER
|
#ifdef DEBUG_PARSER
|
||||||
|
Reference in New Issue
Block a user