From f4a07e730ec17d815e0f71e7524ffb9a8179d281 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 30 May 2013 09:57:13 +0400 Subject: [PATCH] system/ytparser.cpp: try to fix category, if more than one present --- src/system/ytparser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index db3be26a5..0c0b833bb 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -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