<AliasNames>

Returns a pipe "|" delimited list of alias names if the series has any other names in that language.

@see http://www.thetvdb.com/wiki/index.php/API:GetSeries
This commit is contained in:
Reinhard Pointner 2014-08-15 08:16:30 +00:00
parent c17e93a529
commit d883c39091
1 changed files with 6 additions and 2 deletions

View File

@ -102,9 +102,13 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
int sid = getIntegerContent("seriesid", node);
String seriesName = getTextContent("SeriesName", node);
List<String> aliasNames = new ArrayList<String>(2);
List<String> aliasNames = new ArrayList<String>();
for (Node aliasNode : selectNodes("AliasNames", node)) {
aliasNames.add(getTextContent(aliasNode));
for (String aliasName : getTextContent(aliasNode).split("\\|")) {
if (aliasName.trim().length() > 0) {
aliasNames.add(aliasName.trim());
}
}
}
if (!resultSet.containsKey(sid)) {