def build_filename()

in mozdownload/scraper.py [0:0]


    def build_filename(self, binary):
        """Return the proposed filename with extension for the binary."""
        try:
            # Get exact timestamp of the build to build the local file name
            folder = self.builds[self.build_index]
            timestamp = re.search(r'([\d\-]+)-\D.*', folder).group(1)
        except Exception:
            # If it's not available use the build's date
            timestamp = self.date.strftime('%Y-%m-%d')

        return APPLICATION_BUILD_FILENAME[self.application] % {
            'TIMESTAMP': timestamp,
            'BRANCH': self.branch,
            'NAME': binary}