Skip to content

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

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

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

Conversation

@Bolt4243

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