google-code-export / mediaplayer2-for-sh4

Automatically exported from code.google.com/p/mediaplayer2-for-sh4
1 stars 0 forks source link

crash with dm800se and TSimage(dmm image) #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.4.8 in script.module.subssupport

Please provide any additional information below.
when press language(en) to change to another langauge from settings crash 
happaned
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 345, in create
    return screen(self, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/scripts/script.module.SubsSupport/lib/SubsSupport/e2_utils.py", line 68, in __init__
    self.updateList()
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/scripts/script.module.SubsSupport/lib/SubsSupport/e2_utils.py", line 135, in updateList
    list = [ LanguageEntryComponent(file=x[1][2].lower(), name=x[1][0], index=x[0]) for x in languageList ]
TypeError: LanguageEntryComponent() takes exactly 4 arguments (3 given)

i traced the LanguageEntryComponent in Screens/Languageselection.py i found 
LanguageEntryComponent function needs 4 arguments(This is not the case in 
openpli based images)
as you see in this link LanguageEntryComponent needs four arguements while you 
sent three arguaments
http://dream.reichholf.net/pydoc/html/de/d58/namespaceScreens_1_1LanguageSelecti
on.html#a4a568b51d71b91958e1bbc146995d83a

Original issue reported on code.google.com by mfara...@gmail.com on 16 Feb 2015 at 2:50

GoogleCodeExporter commented 9 years ago
Thanks for letting me know.

Can you post me all necessary modifications to make it work also on DM images?
Previous issue was also DM related?

for eTimer this change:
try:
  timer_conn = timer.timeout.connect(self.hide)
except AttributeError:
  timer.callback.append(self.hide)

for LanguageEntryComponent as you posted

Anything else?

Original comment by mx3Lm...@gmail.com on 16 Feb 2015 at 4:54

GoogleCodeExporter commented 9 years ago
Thanks,users of TSmedia and kodidirect are very happy with Subssupport
these only few issues,any reported issue will put here
thanks for great plugins

Original comment by mfara...@gmail.com on 17 Feb 2015 at 5:35

GoogleCodeExporter commented 9 years ago
It would be great if you could send me all necessary modifications to make it 
work on DM image, since I don't own any DM for tests.

Original comment by mx3Lm...@gmail.com on 17 Feb 2015 at 5:42

GoogleCodeExporter commented 9 years ago
This the issue i am sure about it but issue 64 never happened with me
regarding this issue also no real bug in Subssupport but due to different 
languageselection.py between dm and openpli based images
now we cannot ask user to replace languageselection.py in dm images by modified 
but we can cancel importing LanguageEntryComponent function from 
screens.languageselection in e2_utils.py
and the file becomes like this

from Components.config import ConfigText, ConfigSubsection, ConfigDirectory, 
ConfigYesNo, ConfigPassword, getConfigListEntry
#from Screens.LanguageSelection import LanguageEntryComponent###cancel 
importing of languageEntryComponent
from Screens.MessageBox import MessageBox
from Screens.Screen import Screen
from Screens.VirtualKeyBoard import VirtualKeyBoard
from enigma import ePicLoad
from utils import toString
def LanguageEntryComponent(file, name, index):###copy the function from 
Screens.LanguageSelection.LanguageEntryComponent
    from Tools.Directories import resolveFilename, SCOPE_CURRENT_SKIN
    from Tools.LoadPixmap import LoadPixmap
    png = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, 'countries/' + index + '.png'))
    if png == None:
        png = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, 'countries/' + file + '.png'))
        if png == None:
            png = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, 'countries/missing.png'))
    res = (index, name, png)
    return res

attached edited e2_utils.py
the file tested and no problem with openpli and dm images

Original comment by majd5fa...@gmail.com on 17 Feb 2015 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks! added in subssupport 1.5.0 version

Original comment by mx3Lm...@gmail.com on 19 Feb 2015 at 11:02

GoogleCodeExporter commented 9 years ago
Indeed,we are very satisfied with subssupport as well as working with tsmedia & 
mediaplayer2 .my question now is, can we get subssupport to work with direct 
channels to be as separate pulgin works with every MMORPG or direct on tv 
channels?

Original comment by aburidd...@gmail.com on 19 Feb 2015 at 11:59