Skip to content

Commit 0f41da9

Browse files
Fix Output File Extension Concat
1 parent 8a3f1ce commit 0f41da9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

AppiumLibrary/keywords/_screenrecord.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,16 @@ def _save_recording(self, filename):
7373
return path
7474

7575
def _set_output_format(self):
76-
return 'ffmpeg' if self._is_ios() else 'mp4'
76+
return '.ffmpeg' if self._is_ios() else '.mp4'
7777

7878
def _get_screenrecord_paths(self, filename=None):
7979
if filename is None:
8080
self._screenrecord_index += 1
81-
filename = 'appium-screenrecord-{index}.{ext}'.format(index=self._screenrecord_index,
81+
filename = 'appium-screenrecord-{index}{ext}'.format(index=self._screenrecord_index,
8282
ext=self._output_format
8383
)
8484
else:
85-
filename = filename.replace('/', os.sep)
86-
filename += self._output_format
85+
filename = (filename.replace('/', os.sep)) + self._output_format
8786
logdir = self._get_log_dir()
8887
path = os.path.join(logdir, filename)
8988
link = robot.utils.get_link_path(path, logdir)

0 commit comments

Comments
 (0)