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
  • 726 posts

+80
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

  • Senior Member
  • 850 posts

+29
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, Dreambox DM7020HD, QboxHD, QboxHD Mini, Icecrypt T2300HD

Re: beginner in enigma2 plugin development #5 betacentauri

  • PLi® Core member
  • 4,164 posts

+205
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
  • 726 posts

+80
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,760 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
  • 42,882 posts

+463
Excellent

Posted 20 January 2015 - 19:43

He will find out quick enough ;)


* Wavefrontier T90 with 28E/23E/19E/13E/9E/4.8E/0.8W/5W via SCR switches 2 x 2 x 6 user bands
* Ziggo digital cable TV (FTA)

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,383 posts

+211
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

  • Forum Moderator
    PLi® Core member
  • 40,542 posts

+629
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?


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

Currently in active use: HD2400 (4xS2)VU+Duo2 (3xS2)VU+Zero, Edision OS mini+, ET10000 (4xS2)

For testing purposes: XP1000Formuler F1 (2xS2)Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H2.H (S2+C)Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T), Galaxy 4K (FBC), VU Zero 4K, Edision OS nino 


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,402 posts

+171
Excellent

Posted 17 March 2015 - 08:45

I think you need to ask "gutemine"

 

He knows how to hide almost everything ;)


If you like my post click on green arrow :)

Re: beginner in enigma2 plugin development #15 sokalsondha

  • Member
  • 8 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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users