<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:
parent
c17e93a529
commit
d883c39091
|
@ -102,9 +102,13 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
|
||||||
int sid = getIntegerContent("seriesid", node);
|
int sid = getIntegerContent("seriesid", node);
|
||||||
String seriesName = getTextContent("SeriesName", 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)) {
|
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)) {
|
if (!resultSet.containsKey(sid)) {
|
||||||
|
|
Loading…
Reference in New Issue