def find_mirror(self):
        if self.active_mirror is None:
            full_url = (API_KEY, ) % MIRROR_URL

            mirrors_xml = parse(urllib2.urlopen(full_url))
            mirrors = mirrors_xml.findall('Mirror')

            random.seed()
            mirror_to_get = random.randrange(0, len(mirrors), 1)

            mirror = mirrors[mirror_to_get]
            self.active_mirror = mirror.findtext('mirrorpath')

            if self.debug:
                print "Using thetvdb mirror: %s" % (self.active_mirror, )


    # returns an integer timestamp
dataset/ETHPy150Open mrtrumbe/meliman/thetvdb.py/TheTvDb.find_mirror/swapped operands of `%`