Exemple #1
0
 def execute(self):
     country = 'none'
     tpset_list = [
         tp for tp in wyscanserver().GetTransponderSets(-1, 1)
         if tp[1] == country
     ]
     if len(tpset_list) == 0:
         log.warning(
             'Your country does not seem to be listed in wyscan database')
         return None
     tpset = tpset_list[0]
     antenna_list = [
         antenna for antenna in wyscanserver().GetAntenna(-1)
         if antenna[6] == tpset[0]
     ]
     if len(antenna_list) == 0:
         log.warning(
             'No antenna for this country seem to be listed in wyscan database'
         )
         return None
     antenna = antenna_list[0]
     self.scan(_(tpset[1]), antenna, [-1], 0,
               (self.parent.include_scrambled if self.parent else
                user_config['tv']['scan_with_scrambled']))
     return None
Exemple #2
0
	def execute_action(self, val):
		try:
			iso_3166_lang = country_dict[val]['iso-3166']
			from pygui.item.parameters.tv import wyscanserver
			wyscan = wyscanserver()
			wyscan.SetIso3166CountryCode(iso_3166_lang)
		except Exception , e:
			log.warn('Unable to set the country for wyscan (%r)', e)
Exemple #3
0
	def execute_action(self, val):
		l10n.set_language(val)
		if self.exec_callback and hasattr(self.menu, 'related_menu'):
			self.menu.related_menu.on_modify_lang()
		try:
			iso_639_lang = country_dict[val]['iso-639-2']
			from pygui.item.parameters.tv import wyscanserver
			wyscan = wyscanserver()
			wyscan.SetIso639LanguageCode(iso_639_lang)
		except Exception , e:
			log.warn('Unable to set the language for wyscan (%r)', e)
Exemple #4
0
 def scan(self, name, antenna, transponder, scan_network,
          include_scrambled):
     scan_item_list = [
         DVBSScanItem(wyscanserver(),
                      name,
                      antenna,
                      transponder,
                      scan_network,
                      include_scrambled,
                      menu=self.menu)
     ]
     user_config['tv']['scan_with_scrambled'] = include_scrambled
     user_config.save()
     scan_item_list[0].player.play(scan_item_list[0],
                                   playlist=scan_item_list,
                                   hide_previous_menu=False)
     return None
Exemple #5
0
nname: 515
n 515(None)[from wyrecord import WyRecord
wr = WyRecord()
wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
def _on_record_event(*args, **args):
	from pygui.facilities.wylight import WyLed
	if wr.scheduler.IsSomeRecordingRunning():
		WyLed().ask_led_action(1)
	else:
		WyLed().ask_led_action(25)

wr.callbacks.recording_event.register(_on_record_event)
from pygui.item.parameters.tv import wyscanserver
wyscan = wyscanserver()
from pygui.menu.players.tv_player import TVPlayer
log.debug('TV Player loaded')
]:
	i: 512(try)
	o: 742()

nname: 512
n 512(None)[]:
	i: 430(), 473(), 510(AE)
	o: 515(try), 676(except)

nname: 510
n 510(None)[]:
	i: 463(f)
	o: 512(AE)
Exemple #6
0
 def execute_action(self, value):
     wyscanserver().EnableHighLnbVoltage(1, value)
     return None