[RemoteStreamConvert] fix error : eServiceReference has no attribute 'isInvisible'.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / e2openplugins / files / check_has_isinvisible.patch
1 diff --git a/plugin/plugin.py b/plugin/plugin.py
2 index 44e2838..5076d7b 100644
3 --- a/plugin/plugin.py
4 +++ b/plugin/plugin.py
5 @@ -275,15 +275,17 @@ class StreamingChannelFromServerScreen(Screen):
6                         for line in lines:
7                                 if line.startswith('#SERVICE'):
8                                         line = line.replace('\n', '').replace('\r', '').split()
9 -                                       if not int(line[1].split(":")[1]) & eServiceReference.isInvisible:
10 -                                               if len(line) > 3 and line[2] == 'BOUQUET' and (line[3].find('.tv') != -1 or line[3].find('.radio')):
11 -                                                       tmp = line[3].replace('"', '')
12 -                                                       if len(tmp) > 1 and tmp not in list:
13 -                                                               list.append(tmp)
14 -                                               elif line[1].find('0:0:0:0:0:0:0:'):
15 -                                                       tmp = line[1].split('0:0:0:0:0:0:0:')
16 -                                                       if tmp[1] not in list:
17 -                                                               list.append(tmp[1])
18 +                                       if hasattr(eServiceReference, 'isInvisible') and (int(line[1].split(":")[1]) & eServiceReference.isInvisible):
19 +                                               continue
20 +
21 +                                       if len(line) > 3 and line[2] == 'BOUQUET' and (line[3].find('.tv') != -1 or line[3].find('.radio')):
22 +                                               tmp = line[3].replace('"', '')
23 +                                               if len(tmp) > 1 and tmp not in list:
24 +                                                       list.append(tmp)
25 +                                       elif line[1].find('0:0:0:0:0:0:0:'):
26 +                                               tmp = line[1].split('0:0:0:0:0:0:0:')
27 +                                               if tmp[1] not in list:
28 +                                                       list.append(tmp[1])
29  
30         def parseBouqets(self):
31                 list = []