mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
workloads/exoplayer: Fix splitting of format in incorrect location
Split the desired format outside of for loop as this may not be executed.
This commit is contained in:
parent
cfe4c18b71
commit
811dfbe5af
@ -125,8 +125,8 @@ class ExoPlayer(ApkWorkload):
|
|||||||
else:
|
else:
|
||||||
# Search for files we've already downloaded
|
# Search for files we've already downloaded
|
||||||
files = []
|
files = []
|
||||||
|
format_ext, format_resolution = self.format.split('_')
|
||||||
for filename in os.listdir(self.video_directory):
|
for filename in os.listdir(self.video_directory):
|
||||||
format_ext, format_resolution = self.format.split('_')
|
|
||||||
_, file_ext = os.path.splitext(filename)
|
_, file_ext = os.path.splitext(filename)
|
||||||
if file_ext == '.' + format_ext and format_resolution in filename:
|
if file_ext == '.' + format_ext and format_resolution in filename:
|
||||||
files.append(os.path.join(self.video_directory, filename))
|
files.append(os.path.join(self.video_directory, filename))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user