search changed so audio files are correctly identified

This commit is contained in:
robbiejackson 2021-02-23 22:07:00 +00:00
parent 8123f9d920
commit 9268194ca0
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class MediaMediaItem(MediaManagerItem, RegistryProperties):
# Normal media file handling.
file_name = os.path.split(track_str)[1]
item_name = QtWidgets.QListWidgetItem(file_name)
search = file_name.split('.')[-1].lower()
search = "*." + file_name.split('.')[-1].lower()
if search in AUDIO_EXT:
item_name.setIcon(UiIcons().audio)
else: