Changeset 12090 for ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_providers.py
- Timestamp:
- Dec 7, 2011, 11:58:44 AM (14 years ago)
- Location:
- ipk/source.sh4/swapepg_crossepg
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from ipk/source.sh4/swapepg_crossepg_0_61 )
-
var/swap/extensions/CrossEPG/crossepg_providers.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_providers.py
r7451 r12090 63 63 elif self.protocol == "xepgdb": 64 64 self.setTitle("CrossEPG - XEPGDB providers") 65 elif self.protocol == "script s":65 elif self.protocol == "script": 66 66 self.setTitle("CrossEPG - Scripts providers") 67 elif self.protocol == "mhw2": 68 self.setTitle("CrossEPG - MHW2 providers") 67 69 68 70 def buildList(self): 69 71 self.list = [] 70 72 i = 0 73 protocol = self.protocol 74 if protocol == "mhw2": 75 protocol = "script" 76 print protocol 77 print self.protocol 71 78 for provider in self.providers[0]: 72 if self.providers[2][i] == self.protocol: 73 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 79 if self.providers[2][i] == protocol: 80 if protocol == "script": 81 description = self.providers[1][i].lower() 82 # we use find("mhw2") as workaround because mhw2 doesn't exist as provider type 83 if self.protocol == "mhw2" and description.find("mhw2") != -1: 84 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 85 elif self.protocol == "script" and description.find("mhw2") == -1: 86 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 87 else: 88 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 74 89 i += 1 75 90
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)