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.

This is deprecated. While it still works there is no need to bother with it as it will only return the one result listed below. You can just hard code that path. We will be controlling this on our end by use of round robin DNS so there is no need for you to randomly pick a server.

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.

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