Skip to content

fix: GetMediaFiles compared extensions against file paths, always returned empty - #773

Open
Noethix55555 wants to merge 1 commit into
mpvnet-player:mainfrom
Noethix55555:fix/getmediafiles-empty
Open

fix: GetMediaFiles compared extensions against file paths, always returned empty#773
Noethix55555 wants to merge 1 commit into
mpvnet-player:mainfrom
Noethix55555:fix/getmediafiles-empty

Conversation

@Noethix55555

Copy link
Copy Markdown

GetMediaFiles called IsMedia(files, i.Ext), passing the full-path array as the extension list. Since no file path matches any single extension string, the predicate always returned false and the method always yielded an empty result. This broke auto-load-folder.

Fix: use the single-argument overloads IsVideo(i.Ext) || IsAudio(i.Ext) || IsImage(i.Ext).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant