Beispiel #1
0
 def create_guide_item_(self, channel):
     channel_title = common.get_channel_info_by_number(
         channel
     ) if self.sort_mode_ == helper.SortMode.BY_NUMBER else common.get_channel_info_by_name(
         channel)
     channel_object = DirectoryObject(key=Callback(
         self.create_epg_menu,
         channel_name=channel.channel_name,
         channel_id=channel.channel_id),
                                      title=channel_title,
                                      thumb=R(helper.ICON_TV_GUIDE_CHANNEL))
     return channel_object
 def create_channel_list_(self):
     oc = ObjectContainer(no_history=True,
                          no_cache=True,
                          title2=IDS_CHANNEL_MENU_ITEM,
                          art=R(helper.ART_RADIO_CHANNELS))
     for channel in self.channel_list_:
         channel_object = self.create_radio_channel_object(
             channel.channel_name,
             common.get_channel_info_by_number(channel)
             if self.sort_mode_ == helper.SortMode.BY_NUMBER else
             common.get_channel_info_by_name(channel), channel.channel_id,
             self.stream_info_dict_.get(channel.dvblink_channel_id, None))
         oc.add(channel_object)
     return oc
	def create_channel_list_(self):
		oc = ObjectContainer(
			no_history = True,
			no_cache = True,
			title2 = IDS_CHANNEL_MENU_ITEM,
			art = R(helper.ART_RADIO_CHANNELS))
		for channel in self.channel_list_:
			channel_object = self.create_radio_channel_object(
				channel.channel_name,
				common.get_channel_info_by_number(channel) if self.sort_mode_ == helper.SortMode.BY_NUMBER else common.get_channel_info_by_name(channel),
				channel.channel_id,
				self.stream_info_dict_.get(channel.dvblink_channel_id, None))
			oc.add(channel_object)
		return oc
	def create_guide_item_(self, channel):
		channel_title = common.get_channel_info_by_number(channel) if self.sort_mode_ == helper.SortMode.BY_NUMBER else common.get_channel_info_by_name(channel)
		channel_object = DirectoryObject(
			key = Callback(
				self.create_epg_menu,
				channel_name = channel.channel_name,
				channel_id = channel.channel_id),
			title = channel_title,
			thumb = R(helper.ICON_TV_GUIDE_CHANNEL))
		return channel_object