Skip to content

Commit

Permalink
Merge pull request #8 from nemesis668/main
Browse files Browse the repository at this point in the history
Fix casing for media extension comparison
  • Loading branch information
westsurname authored May 21, 2024
2 parents 4236fd0 + 724617a commit 0a10ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blackhole.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def selectFiles(self):

info = self.getInfo()
self.print('files:', info['files'])
mediaFiles = [file for file in info['files'] if os.path.splitext(file['path'])[1] in mediaExtensions]
mediaFiles = [file for file in info['files'] if os.path.splitext(file['path'])[1].lower() in mediaExtensions]

if not mediaFiles:
self.print('no media files found')
Expand Down

0 comments on commit 0a10ec6

Please sign in to comment.