Jump to content


andyblac

Member Since 20 May 2010
Offline Last Active 19 May 2021 11:42
*****

Posts I've Made

In Topic: Crossepg

26 May 2014 - 09:40

The GIT (https://github.com/o...plugin-CrossEPG) doesn't appear to be in sync with the current version number.

Version 0.81 is the current CrossEPG version and the GIT is currently only updated to version 0.7.

 

I have not had any problems with version 0.81 and find that it works fine on PLi.  However, I must have had the Libcurl dependency already installed on my image.

what makes you thinks that ?

 

https://github.com/o.../master/VERSION


In Topic: Remote timer crash

10 May 2014 - 15:51

this is cleaner.

 

diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py
index d2bea0f..5baa1c0 100644
--- a/lib/python/Components/TimerList.py
+++ b/lib/python/Components/TimerList.py
@@ -121,10 +121,14 @@ class TimerList(HTMLComponent, GUIComponent, object):
 		self.l.entryRemoved(idx)
 
 	def getOrbitalPos(self, ref):
-		refstr = str(ref)
+		if hasattr(ref, 'sref'):
+			refstr = str(ref.sref)
+		else:
+			refstr = str(ref)
+
 		if '%3a//' in refstr:
 			return "%s" % _("Stream")
-		op = int(str(ref).split(':', 10)[6][:-4] or "0",16)
+		op = int(refstr.split(':', 10)[6][:-4] or "0",16)
 		if op == 0xeeee:
 			return "%s" % _("DVB-T")
 		if op == 0xffff:

 


In Topic: Remote timer crash

9 May 2014 - 17:56

for RemoteTimer

ref is not a string for the service reference, but an instance, so ref.sref is need to return the true string of service ref

 

 

refstr: <Plugins.Extensions.remoteTimer.plugin.RemoteService instance at 0x23e84e0>
 

 

in RemoteTimer

 

​RemoteService(sref, sname)
 

 

instead of try: except: you could look for the RemoteService instance


In Topic: Autofs does not start after reboot box

28 April 2014 - 09:59

Bug in autofs, it refuses to create /media/net for some reason. It will happily create many other directories though, so if you find out WHY it does not do as it's supposed to, it'd be good to file a bug report for the autofs folks.

irc, autofs can't 'share' the master mountpoint, in your case /media/net, as autofs needs this to be a mountpoint not a standard folder when using the --ghost option.

 

for this reason in oe-aliance we use '/media/autofs' if you run a 'mount' command in telnet you will see that /media/autofs is indeed a mount point, this means you can't have fstab and autofs mounting to the same location.

 

also we tweaked the standard config file to work better with offline servers, you are welcome to use our files.

 

https://github.com/o...-daemons/autofs


In Topic: AutoTimer mod

23 February 2014 - 14:02

Perfect Thanks again Dima73,

 

I've tried installing the AutoTimer mod on my Solo2 running ViX image build 808, and I can see some errors being produced. 

Dreamote does connected and can create AutoTimers, but it seems there's something wrong as the timers are not being created.

The first one occurs using the OpenWebIf pressing Shift and cicking Green which bring up the AutoTimers on my Solo2.

 

[OpenWebif] page '/ajax/config?section=logs' ok (cheetah template)
[OpenWebif] page '/api/saveconfig?key=config.crash.daysloglimit&value=5' ok (json)
main thread is non-idle! display spinner!
[OpenWebif] page '/ajax/config?section=recording' ok (cheetah template)
[OpenWebif] page '/api/saveconfig?key=config.seek.selfdefined_79&value=237' ok (json)
main thread is non-idle! display spinner!
[OpenWebif] page '/ajax/movies' ok (cheetah template)
KEY: 399 GREEN
KEY: 399 GREEN
action ->  InfobarExtensions openAutoTimerList
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action
  File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 2315, in showAutoTimerList
  File "/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoPoller.py", line 141, in stop       
    self.thread.join()
  File "/usr/lib/python2.7/threading.py", line 653, in join
RuntimeError: cannot join thread before it is started                                            (PyObject_CallObject(<bound method HelpableActionMap.action of <Components.ActionMap.HelpableActionMa
]]>                       

This second one looks like it is being caused when you select ParseEPG and/or Preview in DreaMote

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
  File "/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimerResource.py", line 47, in run  
    ret = self.__fnc(req)
  File "/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimerResource.py", line 71, in rende
    ret = autotimer.parseEPG(simulateOnly=True)
  File "/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimer.py", line 599, in parseEPG    
    tup = doBlockingCallFromMainThread(self.parseTimer, timer, epgcache, serviceHandler, recordHandle
  File "/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimer.py", line 81, in blockingCallF
    result.raiseException()
  File "/usr/lib/python2.7/site-packages/twisted/python/failure.py", line 370, in raiseException     
TypeError: unsupported operand type(s) for -=: 'long' and 'str'
[AutoTimer] No changes in configuration, won't parse
[AutoTimer] No changes in configuration, won't parse     

 

 

Is there anything you can do to help me resolve these?

openvix version of AutoTimer is vastly different to the standard version, it uses JobTasks when looking for new timers, as i think just spawning a new thread is pointless, as other tasks code be running and this only eats more cpu. in openvix i use JobTask for almost every heavy cpu / long time consuming operation, so everything gets queued and run one at a time. this stop e2 spinners and bogging down e2.

 

so this mod would be need to adapted for the vix version.