def image_filename_from_url(self, prefix, url): headers = wc_util.copy_headers_with_filename_and_prefix(self.headers, prefix, url) # Nate only has one image file per episode, with the same name. # Need to use timestamp to distinguish them. headers['timestamp'] = str(int(time.time() * 10.0)) return wc_nate.IMAGE_FILENAME_PATTERN.format(**headers)
def image_filename_from_url(self, prefix, url): headers = wc_util.copy_headers_with_filename_and_prefix(self.headers, prefix, url) return IMAGE_FILENAME_PATTERN.format(**headers)
def thumbnail_filename_from_url(self, prefix, url): headers = wc_util.copy_headers_with_filename_and_prefix(self.headers, prefix, url) return THUMBNAIL_FILENAME_PATTERN.format(**headers)
def image_filename_from_url(self, prefix, url): headers = wc_util.copy_headers_with_filename_and_prefix( self.headers, prefix, url) return IMAGE_FILENAME_PATTERN.format(**headers)
def thumbnail_filename_from_url(self, prefix, url): headers = wc_util.copy_headers_with_filename_and_prefix( self.headers, prefix, url) return THUMBNAIL_FILENAME_PATTERN.format(**headers)