Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

news-sites.xml had a typo that was preventing it from loading.

Add some debug for if it fails to parse news-sites.xml.


git-svn-id: http://svn.mythtv.org/svn/trunk@5573 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
commit cda72f6bac31a510821bf649b6a13e02ed5623ba 1 parent a9560be
Isaac Richards authored
11 mythplugins/mythnews/mythnews/mythnewsconfig.cpp
@@ -150,9 +150,18 @@ void MythNewsConfig::populateSites()
150 150 return;
151 151 }
152 152
  153 + QString errorMsg;
  154 + int errorLine = 0;
  155 + int errorColumn = 0;
  156 +
153 157 QDomDocument domDoc;
154   - if (!domDoc.setContent(&xmlFile)) {
  158 +
  159 + if (!domDoc.setContent(&xmlFile, false, &errorMsg, &errorLine, &errorColumn))
  160 + {
155 161 cerr << "MythNews: Error in reading content of news-sites.xml" << endl;
  162 + VERBOSE(VB_IMPORTANT, QString("MythNews: Error, parsing %1\n"
  163 + "at line: %2 column: %3 msg: %4").
  164 + arg(filename).arg(errorLine).arg(errorColumn).arg(errorMsg));
156 165 return;
157 166 }
158 167
2  mythplugins/mythnews/mythnews/news-sites.xml
@@ -1062,7 +1062,7 @@
1062 1062
1063 1063 <item>
1064 1064 <title>EFF Monthly Events Calendar</title>
1065   - <url>http://www.eff.org/calendar/rss/rss.php?cal=events&rssview=month</url>
  1065 + <url>http://www.eff.org/calendar/rss/rss.php?cal=events&amp;rssview=month</url>
1066 1066 <ico>http://www.eff.org/favicon.ico</ico>
1067 1067 </item>
1068 1068

0 comments on commit cda72f6

Please sign in to comment.
Something went wrong with that request. Please try again.