[vlma-devel] commit: Correction of SAP group assignment for satChannels. (Adrien Maglo )

git version control git at videolan.org
Tue May 20 23:46:06 CEST 2008


vlma | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue May 20 23:46:48 2008 +0200| [4f666e0b1d6621997c5700ca1ac2c28eb0894d88]

Correction of SAP group assignment for satChannels.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=4f666e0b1d6621997c5700ca1ac2c28eb0894d88
---

 .../org/videolan/vlma/model/media/SatChannel.java  |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/vlma-model/src/main/java/org/videolan/vlma/model/media/SatChannel.java b/vlma-model/src/main/java/org/videolan/vlma/model/media/SatChannel.java
index 01d3407..16264c7 100644
--- a/vlma-model/src/main/java/org/videolan/vlma/model/media/SatChannel.java
+++ b/vlma-model/src/main/java/org/videolan/vlma/model/media/SatChannel.java
@@ -98,13 +98,12 @@ public class SatChannel extends AbstractMedia {
     protected void updateSapGroup() {
         String sapGroup;
         if (program != null) {
-            if (category.equals("R-DIG")) {
-                sapGroup = VLMa.getInstance().getString("vlma.sap.satellite.group");
-                program.setSapGroup(sapGroup);
-            } else {
+            if (category.equals("R-DIG") || category.equals("R-DIG-CRYPT")) {
                 sapGroup = VLMa.getInstance().getString("vlma.sap.radio.group");
-                program.setSapGroup(sapGroup);
+            } else {
+                sapGroup = VLMa.getInstance().getString("vlma.sap.satellite.group");
             }
+            program.setSapGroup(sapGroup);
         }
     }
 



More information about the vlma-devel mailing list