internal TheTVDBClient(string apiKey, IEnumerable<Mirror> mirrors)
{
this.apiKey = apiKey;
this.allMirror = mirrors.ToList();
foreach (var mirror in this.allMirror)
{
if ((mirror.Type & MirrorType.Xml) == MirrorType.Xml)
this.xmlMirror.Add(mirror);
if ((mirror.Type & MirrorType.Banner) == MirrorType.Banner)
this.bannerMirror.Add(mirror);
if ((mirror.Type & MirrorType.Zip) == MirrorType.Zip)
this.zipMirror.Add(mirror);
}
}