mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
system/ytparser.cpp: try to fix category, if more than one present
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user