Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1686

(2) Little Plugin: select to convert exteplayer ..

$
0
0

Hi

my friend have a little problem :)

 

If select bouquet with Key Yellow (convert to.. Exteplayer3 -5002)

 

No Get ->  directory + nome_file_bouquet.tv

 
   
def crea_bouquet5002(self):

        idx = self["menu"].getSelectionIndex()

        if idx is None:

            return

        else:
       ???????????????????
 

This is a shot..

 

39lEWaJdT.jpg

 

 

any idea.. :(

 

only you need to run a bash command

 

For example:

    def crea_bouquet5002(self):
        idx = self["menu"].getSelectionIndex()
        if idx is None:
            return
        else:

            filename = self['menu'].getCurrentDirectory() + self['menu'].getFilename()

            name = filename
            
            BOUQUETNAME = 'userbouquet.%s.tv' % name
            #self.setTitle(_("Please wait"))
            self["statusbar"] = StaticText()
            self.iConsole = iConsole()
            self["statusbar"].text = _("Converting %s" % name)
            system("sed -i 's/^#SERVICE 4097/#SERVICE 5002/g' %s" %BOUQUETNAME)
            self['statusbar'].setText(_('Select Bouquet to convert..'))
            self.mbox = self.session.open(MessageBox, _('Converted bouquet...'), MessageBox.TYPE_INFO, timeout=5)

I have no idea how to retrieve the name of the selected list ..
how can I create a definition that can do it?

 

This is a problem..

filename = self['menu'].getCurrentDirectory() + self['menu'].getFilename()

Tanks for help


Viewing all articles
Browse latest Browse all 1686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>