mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
check for errors (e.g. <error>Banned</error>)
This commit is contained in:
parent
400b678160
commit
6b6e9d3f6b
@ -101,6 +101,12 @@ public class AnidbClient extends AbstractEpisodeListProvider {
|
|||||||
// get anime page as xml
|
// get anime page as xml
|
||||||
Document dom = getDocument(url);
|
Document dom = getDocument(url);
|
||||||
|
|
||||||
|
// check for errors (e.g. <error>Banned</error>)
|
||||||
|
String error = selectString("/error", dom);
|
||||||
|
if (error != null && error.length() > 0) {
|
||||||
|
throw new IllegalStateException(String.format("%s error: %s", getName(), error));
|
||||||
|
}
|
||||||
|
|
||||||
// parse series info
|
// parse series info
|
||||||
SeriesInfo seriesInfo = new SeriesInfo(this, sortOrder, locale, anime.getId());
|
SeriesInfo seriesInfo = new SeriesInfo(this, sortOrder, locale, anime.getId());
|
||||||
seriesInfo.setAliasNames(anime.getAliasNames());
|
seriesInfo.setAliasNames(anime.getAliasNames());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user