[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - Playlist sorting?

This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Playlist sorting?

Problems, bugs, suggestions... anything related to SMPlayer.

Playlist sorting?

Postby Cavi Mike » Fri Jan 22, 2010 5:47 am

How can I get the playlist to sort items alphabetically? I just dropped 200 files in there and for some reason it jumbled them all up and clicking on the tabs won't sort them. And what does "Add files in directories recursively" mean?
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Playlist sorting?

Postby rvm » Fri Jan 22, 2010 12:23 pm

rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Playlist sorting?

Postby Cavi Mike » Thu Feb 11, 2010 3:25 pm

If anyone else was looking for an easy way to sort lists, this is what I've been doing:

Create/edit your lists in WinAmp and save as .pls
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Playlist sorting?

Postby Neo254 » Mon Feb 22, 2010 5:31 pm

I have writen a function which sorts the playlist by clicking on the header tabs of the playlist.

1. Column: Sort by played, playing, not played
2. Column: Sort alphabetically by name
3. Column: Sort by duration, starting with the shortest

-> If you click and the list is already sorted, the sort will be inverted

Note 1: The sort algorithme is a bubble sort. The performance is not that good. 1.7s for 100 files and about 8s for 200 files. Maybe I will fix this.
Note 2: I have developed and tested it with Qt 4.6.2 under Windows 7. SMPlayer version: 0.6.8 (SVN r3213)

If you are interested have look at it. I commented all changes with //EDIT BY NEO --> <code> //<--
Attachments
src.rar
Changed playlist source and header
(11.3 KiB) Downloaded 425 times
It's not a bug, it's a feature!
Neo254
 
Posts: 2
Joined: Mon Feb 22, 2010 4:58 pm
Location: Germany

Re: Playlist sorting?

Postby rvm » Tue Feb 23, 2010 12:05 am

Thanks, I'll take it a look :)

The playlist will be rewritten in the future, so it doesn't matter if sorting is not very fast.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Playlist sorting?

Postby rvm » Thu Feb 25, 2010 2:12 am

Added the patch to smplayer r3454.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Playlist sorting?

Postby Neo254 » Thu Feb 25, 2010 4:11 pm

Okay cool :)
It's not a bug, it's a feature!
Neo254
 
Posts: 2
Joined: Mon Feb 22, 2010 4:58 pm
Location: Germany


Return to General

Who is online

Users browsing this forum: No registered users and 33 guests