mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
workloads/exoplayer: Prepend file format to downloaded filepath
Always prepend the format for the file into the downloaded filepath to ensure matching is correctly performed. Previously the ogg file did not specify this causing it to be re-downloaded for each run.
This commit is contained in:
parent
22a2ccf7d6
commit
5f1145a41f
@ -133,7 +133,8 @@ class ExoPlayer(ApkWorkload):
|
||||
if not files:
|
||||
# Download a file with the requested format
|
||||
url = DOWNLOAD_URLS[self.format]
|
||||
filepath = os.path.join(self.video_directory, os.path.basename(url))
|
||||
filename = '{}_{}'.format(format_resolution, os.path.basename(url))
|
||||
filepath = os.path.join(self.video_directory, filename)
|
||||
self.logger.info('Downloading {} to {}...'.format(url, filepath))
|
||||
urllib.urlretrieve(url, filepath)
|
||||
return filepath
|
||||
|
Loading…
x
Reference in New Issue
Block a user