Skip to content

Commit

Permalink
Changed list to set
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Nov 23, 2024
1 parent b727717 commit b6fc014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ffmpeg_automator.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def main(): # noqa: WPS231

for file_path in sorted(files):
extension = os.path.splitext(file_path)[-1]
if extension.lower() in ['.mkv', '.mp4', '.avi', '.m4v', '.ts', '.f4v', '.webm']:
if extension.lower() in {'.mkv', '.mp4', '.avi', '.m4v', '.ts', '.f4v', '.webm'}:
video_path = os.path.join(root, file_path)
sys.stdout.write('{0}\n'.format(video_path))
output_path = os.path.join(encoded_dir, file_path.replace(extension, '.mkv'))
Expand Down

0 comments on commit b6fc014

Please sign in to comment.