fix australian - numbers fro dvb-t only
authorims <ims21@users.sourceforge.net>
Wed, 18 Feb 2015 19:01:16 +0000 (20:01 +0100)
committerlittlesat <littlesat99@yahoo.com>
Wed, 18 Feb 2015 19:21:52 +0000 (20:21 +0100)
Signed-off-by: littlesat <littlesat99@yahoo.com>

lib/python/Components/Converter/ChannelNumbers.py

index 5d81f7a..8685d50 100644 (file)
@@ -17,17 +17,18 @@ class ChannelNumbers:
                                        return str(int(f - 470) / 8 + 21) + (d < 3.5 and "-" or d > 4.5 and "+" or "")
 
                elif "Australia" in descr:
-                       d = (f + 1) % 7
-                       ds = (d < 3 and "-" or d > 4 and "+" or "")
-                       if 174 < f < 202:       # CH6-CH9
-                               return str(int(f - 174)/7 + 6) + ds
-                       elif 202 <= f < 209:    # CH9A
-                               return "9A" + ds
-                       elif 209 <= f < 230:    # CH10-CH12
-                               return str(int(f - 209)/7 + 10) + ds
-                       elif 526 < f < 820:     # CH28-CH69
-                               d = (f - 1) % 7
-                               return str(int(f - 526)/7 + 28) + (d < 3 and "-" or d > 4 and "+" or "")
+                       if "DVB-T" in descr:
+                               d = (f + 1) % 7
+                               ds = (d < 3 and "-" or d > 4 and "+" or "")
+                               if 174 < f < 202:       # CH6-CH9
+                                       return str(int(f - 174)/7 + 6) + ds
+                               elif 202 <= f < 209:    # CH9A
+                                       return "9A" + ds
+                               elif 209 <= f < 230:    # CH10-CH12
+                                       return str(int(f - 209)/7 + 10) + ds
+                               elif 526 < f < 820:     # CH28-CH69
+                                       d = (f - 1) % 7
+                                       return str(int(f - 526)/7 + 28) + (d < 3 and "-" or d > 4 and "+" or "")
 
                return ""