video and audio types are inverted what breaks the player.
Moreover $raw_files often already contains the type key.

Comments

StatusFileSize
new802 bytes

Status:Active» Needs work

Functionally this looks fine, but there are some code style / spacing issues to be cleaned up.

Status:Needs work» Reviewed & tested by the community

it is not an issue, I encapsulated a block in a if statement thus I generated the commit with diff -w in order to make the change readable.
1 files changed, 13 insertions(+), 11 deletions(-)
1 files changed, 4 insertions(+), 2 deletions(-)

Assigned:drzraf» Unassigned
Status:Reviewed & tested by the community» Needs review
StatusFileSize
new1.1 KB

Attached a cleaned up version of #1.

Hold the phone, looks like this has already been fixed in #1192826: Undefined variable: player_type in jplayer_sort_files() in the within the patch in #19. Gah.

Status:Needs review» Fixed

Since that patch is still at needs review, I committed this in dafadd3.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.