Author: duncan
Date: Fri Feb  1 14:57:03 2008
New Revision: 10322

Log:
Merge the tv_sort stuff from rel-1 branch


Modified:
   branches/rel-1-7/freevo/freevo_config.py
   branches/rel-1-7/freevo/local_conf.py.example
   branches/rel-1-7/freevo/src/config.py

Modified: branches/rel-1-7/freevo/freevo_config.py
==============================================================================
--- branches/rel-1-7/freevo/freevo_config.py    (original)
+++ branches/rel-1-7/freevo/freevo_config.py    Fri Feb  1 14:57:03 2008
@@ -343,6 +343,7 @@
     (5.22,
      ''' Renamed audio plug-in audio.playlist to audio.playlists
      Added ENCODINGSERVER_SAVE_DIR for re-encoded DVDs
+     Added TV_CHANNELS_COMPARE as a lambda to sort the channels
      '''),
 ]
 
@@ -1910,6 +1911,11 @@
 
 TV_CHANNELS = None
 
+#
+# A lambda function to sort the TV_CHANNELS
+#
+TV_CHANNELS_COMPARE = lambda a, b: cmp(int(a[2]), int(b[2]))
+
 
 # Program to grab xmltv listings. To get a grabber, you need to download
 # xmltv. A possible value for users in the USA is tv_grab_na

Modified: branches/rel-1-7/freevo/local_conf.py.example
==============================================================================
--- branches/rel-1-7/freevo/local_conf.py.example       (original)
+++ branches/rel-1-7/freevo/local_conf.py.example       Fri Feb  1 14:57:03 2008
@@ -1503,6 +1503,11 @@
 # TV_CHANNELS = None
 
 #
+# A lambda function to sort the TV_CHANNELS
+#
+#TV_CHANNELS_COMPARE = lambda a, b: cmp(int(a[2]), int(b[2]))
+
+#
 # TV_FREQUENCY_TABLE - This is only used when Freevo changes the channel 
natively.
 # This is only the case if you are using V4L2 and any of the following plugins:
 # timeshift, ivtv_record, ivtv_basic_tv.

Modified: branches/rel-1-7/freevo/src/config.py
==============================================================================
--- branches/rel-1-7/freevo/src/config.py       (original)
+++ branches/rel-1-7/freevo/src/config.py       Fri Feb  1 14:57:03 2008
@@ -919,7 +919,7 @@
 
             chanlist += [(id, display_name, tunerid)]
 
-        f = lambda a, b: cmp(int(a[2]), int(b[2]))
+        f = config.TV_CHANNELS_COMPARE
         chanlist.sort(f)
 
         try:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to