oe-alliance / oe-alliance-plugins

required oe-alliance plugins
Other
37 stars 138 forks source link

Attribute error before scanning #328

Closed MCelliotG closed 5 years ago

MCelliotG commented 5 years ago

Gives green screen once pressing the green button, HD51 OpenATV 6.3 latest 20:01:51.8321 [ E ] gdi/gpixmap.cpp:216 gSurface [gSurface] ERROR: accelAlloc failed 20:01:51.8389 { } /usr/lib/python2.7/site-packages/twisted/python/util.py:815 untilConcludes 2019-05-18 20:01:51+0300 [-] [SCREENNAME] MisPlsLcnScan 20:01:52.0403 { } /usr/lib/python2.7/site-packages/twisted/python/util.py:815 untilConcludes 2019-05-18 20:01:52+0300 [-] [MisPlsLcnScan][getFrontend] searching for available tuner 20:01:52.0413 { } /usr/lib/python2.7/site-packages/twisted/python/util.py:815 untilConcludes 2019-05-18 20:01:52+0300 [-] Traceback (most recent call last): 20:01:52.0418 { } /usr/lib/python2.7/site-packages/twisted/python/util.py:815 untilConcludes 2019-05-18 20:01:52+0300 [-] File "/usr/lib/enigma2/python/Plugins/SystemPlugins/MisPlsLcnScan/MisPlsLcnScan.py", line 190, in getFrontend 20:01:52.0429 { E } /usr/lib/python2.7/site-packages/twisted/python/util.py:815 untilConcludes 2019-05-18 20:01:52+0300 [-] AttributeError: 'NIM' object has no attribute 'isFBCLink' 20:01:52.0431 [ E ] python/python.cpp:210 call [ePyObject] (PyObject_CallObject(<bound method MisPlsLcnScan.getFrontend of <class 'Plugins.SystemPlugins.MisPlsLcnScan.MisPlsLcnScan.MisPlsLcnScan'>>,()) failed)

Huevos commented 5 years ago

Is this just a one off thing or does it happen 100% of the time. 6.3 does have that attribute.

atvcaptain commented 5 years ago

i have add today

Huevos commented 5 years ago

Thanks.

MCelliotG commented 5 years ago

Fixed today! Time to skin it now! Thanks!

MCelliotG commented 5 years ago

Please regenerate the .po files for MISPLSScan or a .pot file, some strings are not corresponding thus cannot be translated. Example with Found %d transponders mispls

Huevos commented 5 years ago

Ok, give me a few minutes to rebuild it. I can't get PR2 script working here on my windows laptop. No idea what I am doing wrong.

Huevos commented 5 years ago

Ok. Done now.

MCelliotG commented 5 years ago

The .po generation is now OK on incomplete strings, however there are some more to be tweaked inside the code For instance

self["action"].setText**(_(**"Tuning %s MHz, IS %s") % (str(self.transpondercurrent.frequency/1000), str(self.transpondercurrent.is_id)))
self["status"].setText(ngettext**(**"Found %d transponder", "Found %d transponders", len(self.transponders_correct_onid)) % len(self.transponders_correct_onid))

The "Found %d transponder" string misses the required (_( in order to be translatable, it's OK in the po, but needs to be tweaked. Same as Italia MIS etc.

Huevos commented 5 years ago

Can you submit a pull request with the changes you require please.

MCelliotG commented 5 years ago

I'll test the changes and then I'll do if they're OK. Please push the translation update if you like!

Huevos commented 5 years ago

Did this get solved?

MCelliotG commented 5 years ago

The green screen yes, the translation of these three strings no, and honestly I can't find any error in the code either (although I'm terrible at it). mispls BTW any plans to extend LCN scan to DVB-T/T2 as well?

AbuBaniaz commented 5 years ago

If the SI tables are fine, would be better to add to provider to AutoBouquetsMaker

Huevos commented 5 years ago

Does your terrestrial television have LCNs? Can you get a full transport stream recording?

Both ABM and TerrestrialScan plugins do LCN scans of terrestrial where LCNs are present. Currently ABM can scan UK, Netherlands and Ireland terrestrial and order by LCN.

Huevos commented 5 years ago

This should sort out the translation of the provider names. https://github.com/oe-alliance/oe-alliance-plugins/commit/66b2db32451265c981ac1f07000d2a91d99f83cc

Not sure the cause of the other problem yet.