Jump to content


Photo

EasyMedia plugin


  • Please log in to reply
26 replies to this topic

#1 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 08:46

Ik zit met een klein probleem. Elke keer als er een update is van Openpli moet ik Easy Media aanpassen Font grote en Regel afstand. Is dit op een of ander manier vast te leggen in de skin? 

Het gaat om deze 2 regels die rood gekleurd zijn.Ik geef het voorbeeld weer in origineel en in aangepast.

Origineel:

def MPanelEntryComponent(key, text, cell):
res = [ text ]
res.append((eListboxPythonMultiContent.TYPE_TEXT, 150, 17, 300, 60, 0, RT_HALIGN_LEFT, text[0]))
if cell<5:
bpng = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/EasyMedia/key-' + str(cell) + ".png")
if bpng is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 0, 5, 5, 50, bpng))
png = LoadPixmap(EasyMedia.EMiconspath + key + '.png')
if png is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 25, 5, 100, 50, png))
else:
png = LoadPixmap(EasyMedia.EMiconspath + 'default.png')
if png is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 25, 5, 100, 50, png))
return res
 
 
 
class MPanelList(MenuList):
def __init__(self, list, selection = 0, enableWrapAround=True):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(60)
self.selection = selection
def postWidgetCreate(self, instance):
MenuList.postWidgetCreate(self, instance)
self.moveToIndex(self.selection)
 
Aangepast:
def MPanelEntryComponent(key, text, cell):
res = [ text ]
res.append((eListboxPythonMultiContent.TYPE_TEXT, 150, 17,450, 60, 0, RT_HALIGN_LEFT, text[0]))
if cell<5:
bpng = LoadPixmap('/usr/lib/enigma2/python/Plugins/Extensions/EasyMedia/key-' + str(cell) + ".png")
if bpng is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 0, 5, 5, 50, bpng))
png = LoadPixmap(EasyMedia.EMiconspath + key + '.png')
if png is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 25, 5, 100, 50, png))
else:
png = LoadPixmap(EasyMedia.EMiconspath + 'default.png')
if png is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 25, 5, 100, 50, png))
return res
 
 
 
class MPanelList(MenuList):
def __init__(self, list, selection = 0, enableWrapAround=True):
MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 32))
self.l.setItemHeight(70)
self.selection = selection
def postWidgetCreate(self, instance):
MenuList.postWidgetCreate(self, instance)
self.moveToIndex(self.selection)

 

 



Re: EasyMedia plugin #2 littlesat

  • PLi® Core member
  • 56,272 posts

+691
Excellent

Posted 5 October 2019 - 08:55

Geen idee wat die easy media plugin is en wat het doet...maar als ik na die code kijk wordt er geen rekening gehouden Met full hd skins... en dan gaat het mis. Waar heb je hem vandaan?

Edited by littlesat, 5 October 2019 - 08:56.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: EasyMedia plugin #3 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 09:29

Attached File  1_0_19_4AF7_840_600_FFFF0000_0_0_0_20191005102814.jpg   83.35KB   10 downloads Hier een afbeelding van die plugin. Een soort extra menu. wel erg handig vind ik Wel met aangepaste fond en regel afstand.


Edited by Loui (PD1LOI), 5 October 2019 - 09:31.


Re: EasyMedia plugin #4 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 09:34

Attached File  1_0_19_4AF7_840_600_FFFF0000_0_0_0_20191005103323.jpg   81.6KB   5 downloads Hier zie je de originele EasyMedia zoals deze ook gedownload word. Mij gaat het er om hoe kan ik voorkomen  (rood gekleurd) dat elke keer bij een grote update of bij nieuw installeren deze grote van het font kan behouden. 


Edited by Loui (PD1LOI), 5 October 2019 - 09:39.


Re: EasyMedia plugin #5 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 09:52

Ik zie toevallig omdat ik weer aan het zoeken was naar een oplossing dit voorbij komen. https://github.com/o...aster/easymedia een aangepaste versie die wel goed beeld weergeeft. en staat niet in de feed van OpenPli.



Re: EasyMedia plugin #6 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 10:37

Ik zie toevallig omdat ik weer aan het zoeken was naar een oplossing dit voorbij komen. https://github.com/o...aster/easymedia een aangepaste versie die wel goed beeld weergeeft. en staat niet in de feed van OpenPli.

Blijkt toch niet zo te zijn, bij opnieuw installeren geeft deze toch kleine letters font = 24 i.p.v 34 of daar omtrent.



Re: EasyMedia plugin #7 littlesat

  • PLi® Core member
  • 56,272 posts

+691
Excellent

Posted 5 October 2019 - 11:28

Ff wanwizard een seintje geven zodat de juist we in de feed komt... maar ik kan je wel zeggen dat dit een ‘rommel’ plug-in is zoals her gemaakt is...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: EasyMedia plugin #8 WanWizard

  • PLi® Core member
  • 68,605 posts

+1,739
Excellent

Posted 5 October 2019 - 11:39

Wij bouwen geen easymedia plugin, er staat een antieke versie in de third-party feed.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: EasyMedia plugin #9 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 12:02

Wij bouwen geen easymedia plugin, er staat een antieke versie in de third-party feed.

Weet ik, is ook een antieke plugin maar werkt verder nog goed alleen bij een SD beeld verhouding is het ook oke. maar tegenwoordig met HD of UHD scherm is het font van de plugin te klein font="Regular;24" en moet font="Regular;34" zijn. Hoe kan ik zorgen dat dit in de skin overgenomen word? Zo klakkeloos erin plakken werkt dus niet.



Re: EasyMedia plugin #10 WanWizard

  • PLi® Core member
  • 68,605 posts

+1,739
Excellent

Posted 5 October 2019 - 12:14

Was meer een reactie naar Littlesat. 

 

En geen idee, niet mijn "area of expertise". ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: EasyMedia plugin #11 mrvica

  • Senior Member
  • 1,227 posts

+82
Good

Posted 5 October 2019 - 13:10

this is the latest old version, the new versions are for DreamOS (not always compatible)

https://dreamboxupda...r2_mips32el.ipk

if you can´t install it because you have an arm box, just unpack the .ipk with 7zip

If I have a time I may adapt it for full HD



Re: EasyMedia plugin #12 littlesat

  • PLi® Core member
  • 56,272 posts

+691
Excellent

Posted 5 October 2019 - 14:29

Sounds like a Dreambox only plugin with a license we cannot use...:(

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: EasyMedia plugin #13 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 15:11

this is the latest old version, the new versions are for DreamOS (not always compatible)

https://dreamboxupda...r2_mips32el.ipk

if you can´t install it because you have an arm box, just unpack the .ipk with 7zip

If I have a time I may adapt it for full HD

Then this would be enough. Attached File  plugin.py   23.83KB   3 downloads



Re: EasyMedia plugin #14 mrvica

  • Senior Member
  • 1,227 posts

+82
Good

Posted 5 October 2019 - 15:19

we had this discussion already on MerlinEPG, it is the same license, you can use Vali´s plugins unrestricted
http://www.ihad.tv/w...823#post1823823

Re: EasyMedia plugin #15 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 15:34

we had this discussion already on MerlinEPG, it is the same license, you can use Vali´s plugins unrestricted
http://www.ihad.tv/w...823#post1823823

Okay, so now I've adapted this one for myself. But it would be better if it would also be available in the OpenPli feed. But this one is suitable for HD Font=32.

Attached Files



Re: EasyMedia plugin #16 WanWizard

  • PLi® Core member
  • 68,605 posts

+1,739
Excellent

Posted 5 October 2019 - 15:43

If that ipk is better than the one currently in the feed, I'll add it.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: EasyMedia plugin #17 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 5 October 2019 - 15:47

If that ipk is better than the one currently in the feed, I'll add it.

Ja voor gebruik in PLi-FullNightHD zal het er beter uitzien. De verhouding klopt beter


Edited by Loui (PD1LOI), 5 October 2019 - 15:47.


Re: EasyMedia plugin #18 WanWizard

  • PLi® Core member
  • 68,605 posts

+1,739
Excellent

Posted 5 October 2019 - 15:57

Ok, dan gooi ik 'm er in, merci !


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: EasyMedia plugin #19 littlesat

  • PLi® Core member
  • 56,272 posts

+691
Excellent

Posted 5 October 2019 - 16:38

En de licentie? Zolang samsamsam types niet aan komen kloppen ?!

Edited by littlesat, 5 October 2019 - 16:39.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: EasyMedia plugin #20 WanWizard

  • PLi® Core member
  • 68,605 posts

+1,739
Excellent

Posted 5 October 2019 - 17:35

Volgens de file die er bij zit Creative Commons, dus geen probleem.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users