* Ignore bad series entries on the client-side right away
This commit is contained in:
parent
fd41e5518a
commit
352b34bb61
|
@ -114,6 +114,11 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
|
||||||
int sid = matchInteger(getTextContent("seriesid", node));
|
int sid = matchInteger(getTextContent("seriesid", node));
|
||||||
String seriesName = getTextContent("SeriesName", 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>();
|
List<String> aliasNames = new ArrayList<String>();
|
||||||
for (Node aliasNode : selectNodes("AliasNames", node)) {
|
for (Node aliasNode : selectNodes("AliasNames", node)) {
|
||||||
for (String aliasName : getTextContent(aliasNode).split("\\|")) {
|
for (String aliasName : getTextContent(aliasNode).split("\\|")) {
|
||||||
|
|
Loading…
Reference in New Issue