Sort channel list (finally ;)

git-svn-id: svn://svn.berlios.de/gpodder/trunk@480 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2007-12-06 07:36:00 +00:00
parent 753706b3c9
commit 329ddcc0c7
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,13 @@
Thu, 06 Dec 2007 08:35:12 +0100 <thp@perli.net>
Sort channel list (finally ;)
* src/gpodder/libpodcasts.py: Sort channels by lowercase title before
returning the channel list in load_channels(); this automagically
makes gPodder's channel list always sorted :)
Thanks to FriedBunny <friedbunny@kulturny.com> for suggesting this and
sending in an intial patch that led to this patch =)
* TODO: Remove implemented item: Sort channel list
Tue, 04 Dec 2007 23:28:27 +0100 <thp@perli.net>
Do grayscale "pill" instead of theme-based colors (for bad themes)

3
TODO
View file

@ -20,9 +20,6 @@
continues to check the other feeds. I think a timeout of 10 seconds
is reasonable.
Is it possible to sort the Channel list by alphabetical order, or to
add this as a preference?
(suggested by Paul Elliott <omahns.home@gmail.com>)
* My element for the wishlist: have gPodder produce a sound when a

View file

@ -741,6 +741,7 @@ def load_channels( load_items = True, force_update = False, callback_proc = None
count += 1
podcastChannel.clear_cache(urls_to_keep)
result.sort(key=lambda x:x.title.lower())
return result
def save_channels( channels):