Need scripts /etc/init.d/* ymod and cccam230
- Forums
- → Bekijkt een profiel: Reputation: Dimitrij
ATTENTION !!!
Due to a database corruption issue, we were forced to restore last-nights backup. This means all posts of Saterday Febuary 17th have been lost.Statistieken
-
Groep:
Senior Member
- OthersPLi® Core member
- Aantal berichten: 10039 ( per dag)
- Profiel bekeken: 23948
- Leeftijd: 51 jaar oud
- Verjaardag: Januari 3, 1973
-
Gender
Man
-
Location
Liepaja
Contactinfomatie
#407809 Preferred tuner for recording
Geplaatst door Dimitrij aan 22 februari 2014 - 16:25
In a plugin for rec infobar... Why not try to make the change in e2 itself?
Done.
--- a/RecordTimer.py +++ b/RecordTimer.py @@ -1,6 +1,6 @@ import os from enigma import eEPGCache, getBestPlayableServiceReference, \ - eServiceReference, iRecordableService, quitMainloop, eActionMap + eServiceReference, iRecordableService, quitMainloop, eActionMap, setPreferredTuner from Components.config import config from Components.UsageConfig import defaultMoviePath @@ -167,7 +167,8 @@ self.tags = tags or [] self.descramble = descramble self.record_ecm = record_ecm - + self.needChangePriorityFrontend = config.usage.recording_frontend_priority.value != "-2" and config.usage.recording_frontend_priority.value != config.usage.frontend_priority.value + self.change_frontend = False self.log_entries = [] self.resetState() @@ -227,11 +228,12 @@ if not rec_ref: self.log(1, "'get best playable service for group... record' failed") return False - + self.setRecordingPreferredTuner() self.record_service = rec_ref and NavigationInstance.instance.recordService(rec_ref) if not self.record_service: self.log(1, "'record service' failed") + self.setRecordingPreferredTuner(setdefault=True) return False if self.repeated: @@ -264,6 +266,7 @@ NavigationInstance.instance.stopRecordService(self.record_service) self.record_service = None + self.setRecordingPreferredTuner(setdefault=True) return False return True @@ -296,6 +299,7 @@ cur_zap_ref = NavigationInstance.instance.getCurrentlyPlayingServiceReference() if cur_zap_ref and not cur_zap_ref.getPath():# we do not zap away if it is no live service Notifications.AddNotification(MessageBox, _("In order to record a timer, the TV was switched to the recording service!\n"), type=MessageBox.TYPE_INFO, timeout=20) + self.setRecordingPreferredTuner() self.failureCB(True) self.log(5, "zap to recording service") @@ -325,6 +329,7 @@ cur_ref = NavigationInstance.instance.getCurrentlyPlayingServiceReference() if cur_ref and not cur_ref.getPath(): if Screens.Standby.inStandby: + self.setRecordingPreferredTuner() self.failureCB(True) elif not config.recording.asktozap.value: self.log(8, "asking user to zap away") @@ -332,6 +337,7 @@ else: # zap without asking self.log(9, "zap without asking") Notifications.AddNotification(MessageBox, _("In order to record a timer, the TV was switched to the recording service!\n"), type=MessageBox.TYPE_INFO, timeout=20) + self.setRecordingPreferredTuner() self.failureCB(True) elif cur_ref: self.log(8, "currently running service is not a live service.. so stop it makes no sense") @@ -369,7 +375,7 @@ else: Notifications.AddNotification(Screens.Standby.Standby, StandbyCounterIncrease=False) record_res = self.record_service.start() - + self.setRecordingPreferredTuner(setdefault=True) if record_res: self.log(13, "start record returned %d" % record_res) self.do_backoff() @@ -427,6 +433,18 @@ return False self.end = new_end return True + + def setRecordingPreferredTuner(self, setdefault=False): + if self.needChangePriorityFrontend: + elem = None + if not self.change_frontend and not setdefault: + elem = config.usage.recording_frontend_priority.value + self.change_frontend = True + elif self.change_frontend and setdefault: + elem = config.usage.frontend_priority.value + self.change_frontend = False + if elem is not None: + setPreferredTuner(int(elem)) def sendStandbyNotification(self, answer): RecordTimerEntry.keypress() --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -172,6 +172,8 @@ for x in nimmanager.nim_slots: nims.append((str(x.slot), x.getSlotName())) config.usage.frontend_priority = ConfigSelection(default = "-1", choices = nims) + nims.append(("-2", _("Disabled"))) + config.usage.recording_frontend_priority = ConfigSelection(default = "-2", choices = nims) config.misc.disable_background_scan = ConfigYesNo(default = False) config.usage.show_event_progress_in_servicelist = ConfigSelection(default = 'barright', choices = [ --- a/data/setup.xml +++ b/data/setup.xml @@ -103,6 +103,7 @@ <item level="1" text="EPG language selection 2" description="Configure the secondary EPG language.">config.autolanguage.audio_epglanguage_alternative</item> </setup> <setup key="recording" title="Record"> + <item level="2" text="Preferred tuner for recordings" description="Configure which tuner for recordings will be preferred, when more than one tuner is available.">config.usage.recording_frontend_priority</item> <item level="1" text="Recordings always have priority" description="When enabled, a recording is allowed to interrupt live tv, when there are no free tuners.">config.recording.asktozap</item> <item level="0" text="Margin before recording (minutes)" description="When nonzero, a recording will start earlier than the starting time indicated by the EPG.">config.recording.margin_before</item> <item level="0" text="Margin after recording (minutes)" description="When nonzero, a recording will stop later than the ending time indicated by the EPG.">config.recording.margin_after</item>
#396886 A number of crash logs after upgrade
Geplaatst door Dimitrij aan 5 januari 2014 - 17:53
No.
plugin SoftcamSetup(autocam mod),delete this plugin.
#396269 Advanced StartupToStandby
Geplaatst door Dimitrij aan 3 januari 2014 - 18:55
Is there a plugin for having the receiver ALWAYS booting to standby?
Or what are the settings to obtain this with Advanced Startup ToStandby?
(a bit to complicated for me).
Example:
Standby mode always on boot...
#393221 Xtrend ET-9200 crashes during a record if I start EPG and then try to exit th...
Geplaatst door Dimitrij aan 21 december 2013 - 07:16
Yep...
Old /usr/lib/enigma2/python/Components/EpgList.py
Delete /usr/lib/enigma2/python/Components/EpgList.py and update box
#392215 History Zap Selector
Geplaatst door Dimitrij aan 15 december 2013 - 18:44
version 1.8
#389174 ChannelSelection
Geplaatst door Dimitrij aan 26 november 2013 - 06:36
Again what are you doing to get the so called by you described mess.
Xqq... I do not get it anymore?
Just add it and the issue will be closed.
def correctChannelNumber(self): current_ref = self.session.nav.getCurrentlyPlayingServiceOrGroup() if self.dopipzap: tmp_mode = config.servicelist.lastmode.value tmp_root = self.getRoot() tmp_ref = self.getCurrentSelection() + pip_ref = self.session.pip.getCurrentService() + if tmp_ref and pip_ref and tmp_ref != pip_ref: # sanity checks!!! + return
#388880 EPGRefresh
Geplaatst door Dimitrij aan 24 november 2013 - 14:47
Plugin for PLi image.
#387422 History Zap Selector
Geplaatst door Dimitrij aan 17 november 2013 - 20:26
done
#383781 Extentended Number Zap
Geplaatst door Dimitrij aan 30 oktober 2013 - 17:39
Version 1.0-rc9
-add correct Channel Number
-find iptv picons
#378387 TMBD Details
Geplaatst door Dimitrij aan 7 oktober 2013 - 05:16
version 5.0-rc11
-fix themoviedb.org
#368604 FullBackup
Geplaatst door Dimitrij aan 25 augustus 2013 - 08:30
nere
#368279 Modification EpgList
Geplaatst door Dimitrij aan 23 augustus 2013 - 15:01
I did some more investigation... but the patch is not complete... we should have a complete .patch file with a complete commit. With what is delivered now we must add all stuff manually.
You are a professional in enigma2.
Please make the complete .patch
I honestly do not know how to do it.
P.S.This is my personal request.
#366261 FullBackup
Geplaatst door Dimitrij aan 13 augustus 2013 - 12:26
ver. 2.6
thank betacentauri
P.S.Please replace the version on the feed.
#363030 Crash bij draaien of wisselen schotel(s?)
Geplaatst door Dimitrij aan 27 juli 2013 - 15:46
- Forums
- → Bekijkt een profiel: Reputation: Dimitrij