Jump to content


Photo

Little Plugin: select to convert


  • Please log in to reply
3 replies to this topic

#1 pzanone

  • Senior Member
  • 202 posts

+10
Neutral

Posted 7 February 2017 - 16:18

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:
       ???????????????????
 

Thi 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)

This is a problem..

 

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

 

Tanks for help ;)


Edited by pzanone, 7 February 2017 - 16:19.


Re: Little Plugin: select to convert #2 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 9 February 2017 - 16:00

Please ask in the Third party forum :-

 

https://forums.openp...ty-development/

 

You may get help from the exteplayer experts.

 

Regards, pcd.


Edited by pcd, 9 February 2017 - 16:01.


Re: Little Plugin: select to convert #3 littlesat

  • PLi® Core member
  • 56,258 posts

+691
Excellent

Posted 9 February 2017 - 16:44

def crea_bouquet5002(self):
        idx = self["menu"].getSelectionIndex()
        if idx is not None:
 
            filename = self['menu'].getCurrentDirectory() + self['menu'].getFilename()
 
            BOUQUETNAME = 'userbouquet.%s.tv' % filename
            self["statusbar"] = StaticText()
            self.iConsole = iConsole()
            self["statusbar"].text = _("Converting %s" % filename)
            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)

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


Re: Little Plugin: select to convert #4 pzanone

  • Senior Member
  • 202 posts

+10
Neutral

Posted 9 February 2017 - 20:24

;)

Tanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users