* Ignore bad series entries on the client-side right away

This commit is contained in:
Reinhard Pointner 2016-03-01 05:19:27 +00:00
parent fd41e5518a
commit 352b34bb61
1 changed files with 5 additions and 0 deletions

View File

@ -114,6 +114,11 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
int sid = matchInteger(getTextContent("seriesid", node));
String seriesName = getTextContent("SeriesName", node);
if (seriesName.startsWith("**") && seriesName.endsWith("**")) {
Logger.getLogger(getClass().getName()).log(Level.WARNING, String.format("Invalid series: %s [%d]", seriesName, sid));
continue;
}
List<String> aliasNames = new ArrayList<String>();
for (Node aliasNode : selectNodes("AliasNames", node)) {
for (String aliasName : getTextContent(aliasNode).split("\\|")) {