API:mirrors.xml

From TvDBwiki

Jump to: navigation, search

The mirrors.xml file holds a list of all of the mirrors that you can retrieve information from. Client software should randomly select one that has a suitable typemask field.

[edit] Typemasks

The value of typemask is the sum of whichever file types that mirror holds:

1 xml files

2 banner files

4 zip files

So, a mirror that has a typemask of 5 would hold XML and ZIP files, but no banner files.

[edit] Example Results

<?xml version="1.0" encoding="UTF-8" ?>
<Mirrors>
 <Mirror>
   <id>1</id>
   <mirrorpath>http://thetvdb.com</mirrorpath>
   <typemask>7</typemask>
 </Mirror>
</Mirrors>
Personal tools