Jump to content


Photo

beginner in enigma2 plugin development

enigma2 plugin

  • Please log in to reply
14 replies to this topic

#1 amisoft

  • Member
  • 5 posts

0
Neutral

Posted 17 January 2015 - 18:41

hello i,m new in this forum, i wanna say thanks to all member of this forum it's great's for all enigma2 developer.

i'm a beginner in enigma2 development.

i have some question if any one can help me please.

first, thanks to all member and moderate of this forum.

second, i'm so sorry for my bad english :P

question:


1)- i want to know how can i create file in etc/enigma2 for liste of iptv chanel but i don't want any one to see the urel of chanel.
like this : #SERVICE 4097:0:1:0:0:0:0:0:0:0:[variable contains url]:description

2)- i want to know how can i delete the file when the receiver shutdown or after x temps. because i want to create a free plugin of iptv chanel but i don't want anyone to see the url of chanel.


thanks to you all.

 



Re: beginner in enigma2 plugin development #2 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 18 January 2015 - 11:11

The basic principle of code development is that everything should be open for others to see, learn and use. You will probably not get help to write "secret" codes.



Re: beginner in enigma2 plugin development #3 amisoft

  • Member
  • 5 posts

0
Neutral

Posted 20 January 2015 - 00:50

thanks mr pcd for your response.

 

but i don't want to write a open source plugin i said it's a free plugin. because i will use my own database on my own server.

 

if i make it open every could enter to my server.

 

thanks again for your response mr pcd.



Re: beginner in enigma2 plugin development #4 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 20 January 2015 - 13:10

If you wrote the code in Python, You may delete the plugin.py and retain only plugin.pyo
The reverse engineering from plugin.pyo -> plugin.py is possible but it is not so easy. An ordinary person do not bother such things.
When you write your code in cpp is the same story, you can hide the source, so your code is not visible to all peolpe.
Use of a closed-plugins is at the same time suspicious, so pcd has righ! We do not like this kind of things.


DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: beginner in enigma2 plugin development #5 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 20 January 2015 - 14:34

It's quite simple to convert .pyo back to .py. I know at least one tool which can do it. Perhaps you can do something special in the code so that decompiler don't work...
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: beginner in enigma2 plugin development #6 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 20 January 2015 - 17:21

One way with python is obfuscation. It is very difficult to read.



Re: beginner in enigma2 plugin development #7 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 January 2015 - 19:41

The secret should be in the credentials, not in the code

Re: beginner in enigma2 plugin development #8 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 20 January 2015 - 19:43

He will find out quick enough ;)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: beginner in enigma2 plugin development #9 amisoft

  • Member
  • 5 posts

0
Neutral

Posted 26 January 2015 - 16:01

thanks to you all.

 

i have one more question.

 

how can i build a config screen with 3 input.

 

i make that code but it's not working i don't know wher is the problem

import os

from Components.ActionMap import ActionMap
from Components.config import config, ConfigYesNo, ConfigSubsection, getConfigListEntry
from Components.ConfigList import ConfigListScreen
from Components.Label import Label
from Plugins.Plugin import PluginDescriptor
from Screens.Screen import Screen

##############################################################################

config.plugins.testiptv = ConfigSubsection()
config.plugins.testiptv.name = ConfigText(default="", fixed_size=False)
config.plugins.testiptv.server = ConfigText(default="", fixed_size=False)
config.plugins.testiptv.quality_selector = ConfigSelection(default="hd", choices = [("hd", "HD"),("sd", "SD")])


##############################################################################

class testiptvConfigFunction(ConfigListScreen, Screen):
	skin = """
		<screen position="80,170" size="560,270" title="testiptv">
			<ePixmap pixmap="skin_default/buttons/red.png" position="0,0" size="140,40" transparent="1" alphatest="on" />
			<ePixmap pixmap="skin_default/buttons/green.png" position="140,0" size="140,40" transparent="1" alphatest="on" />
			<ePixmap pixmap="skin_default/buttons/yellow.png" position="280,0" size="140,40" transparent="1" alphatest="on" />
			<ePixmap pixmap="skin_default/buttons/blue.png" position="420,0" size="140,40" transparent="1" alphatest="on" />
			<widget name="key_green" position="140,0" zPosition="1" size="140,40" font="Regular;20" valign="center" halign="center" backgroundColor="#1f771f" transparent="1" />
			<widget name="config" position="0,45" size="560,220" scrollbarMode="showOnDemand" />
		</screen>"""

	def __init__(self, session):
		Screen.__init__(self, session)
		self["key_green"] = Label(_("Save"))
		self.cfglist = []
        self.cfglist.append(getConfigListEntry(_("name:"), config.plugins.testiptv.name))
        self.cfglist.append(getConfigListEntry(_("server:"), config.plugins.testiptv.server))
        self.cfglist.append(getConfigListEntry(_("quality:"), config.plugins.testiptv.quality_selector))
        ConfigListScreen.__init__(self, self.cfglist, session)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], {"green": self.save, "cancel": self.exit}, -1)

	def save(self):
		for x in self["config"].list:
			x[1].save()
		self.close()

	def exit(self):
		for x in self["config"].list:
			x[1].cancel()
		self.close()

##############################################################################

def main(session, **kwargs):
	session.open(testiptvConfigFunction)

def Plugins(**kwargs):
	return PluginDescriptor(
			name="testiptv",
			description="test iptv",
			where = PluginDescriptor.WHERE_PLUGINMENU,
			icon="iptv.png",
			fnc=main)



Re: beginner in enigma2 plugin development #10 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 27 January 2015 - 17:44

You have to add  ConfigText,ConfigSelection to import statement of  Components.config



Re: beginner in enigma2 plugin development #11 salam786786

  • Member
  • 1 posts

0
Neutral

Posted 13 March 2015 - 00:16

hi can someone help me please i have n box 5800sx i used to use rats channel updater and now it doesnt work can anyone suggest any others i can use thank you 



Re: beginner in enigma2 plugin development #12 WanWizard

  • PLi® Core member
  • 70,923 posts

+1,835
Excellent

Posted 13 March 2015 - 08:19

hi can someone help me please i have n box 5800sx i used to use rats channel updater and now it doesnt work can anyone suggest any others i can use thank you 

 

And this is related to plugin development how?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: beginner in enigma2 plugin development #13 peteru

  • Senior Member
  • 36 posts

+5
Neutral

Posted 16 March 2015 - 04:52

One way with python is obfuscation. It is very difficult to read.

There is no point if your intent is to hide the URL. At some point the URL will be transmitted in plain text. Simplest method is to use packet capture, but you could just as easily add a print statement to the lower level system python libraries that provide URL fetching services.

"Beauty lies in the hands of the beer holder."

 


Re: beginner in enigma2 plugin development #14 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 17 March 2015 - 08:45

I think you need to ask "gutemine"

 

He knows how to hide almost everything ;)


Open Vision sources: https://github.com/OpenVisionE2


Re: beginner in enigma2 plugin development #15 sokalsondha

  • Member
  • 7 posts

0
Neutral

Posted 5 April 2018 - 19:32

I think you need to ask "gutemine"

 

He knows how to hide almost everything ;)

hello sir do can you tell me how to make enigma2 plugin for iptv bouquet maker? thanks in advance





Also tagged with one or more of these keywords: enigma2, plugin

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users