예제 #1
0
    def buildM3uBouquets(self):
        self.categories = []

        for x in jglob.getm3ustreams:
            if x[0] != '':
                if [x[0], x[4]] not in self.categories:
                    self.categories.append([x[0], x[4]])

        if self.firstrun == True:
            self.epg_name_list = []

            self.unique_ref = cfg.unique.value

        self.firstrun = False

        if self.category_num < len(self.categories):
            self.m3u_process_category()

        else:
            if jglob.live and jglob.has_epg_importer and jglob.epg_provider and jglob.xmltv_address != '':
                bx.buildXMLTVChannelFile(self.epg_name_list)
                bx.buildXMLTVSourceFile()
                self.updateBouquetJsonFile()
                jfunc.refreshBouquets()

            self.nextjob((''), self.loopPlaylists)
예제 #2
0
    def buildBouquets(self):
        if self.firstrun == True:
            self.epg_name_list = []

        self.firstrun = False

        if self.category_num < len(self.categories):
            self.process_category()
        else:
            if jglob.live and jglob.has_epg_importer and jglob.epg_provider and jglob.xmltv_address != '':
                bx.buildXMLTVChannelFile(self.epg_name_list)
                bx.buildXMLTVSourceFile()
                self.updateBouquetJsonFile()
                jfunc.refreshBouquets()

            self.nextjob((''), self.loopPlaylists)
예제 #3
0
    def buildM3uBouquets(self):

        self['progress'].setValue(self.progresscurrent)
        self['action'].setText(
            _('Building Categories %d of %d') %
            (self.job_current, self.job_total))

        if len(self.categories) <= 1:
            self['status'].setText(_("Building 'General' Bouquet"))
        else:
            self['status'].setText(_('Building Categories'))

        self.categories = []

        for x in jglob.getm3ustreams:
            if [x[0], x[4]] not in self.categories:
                self.categories.append([x[0], x[4]])

        if self.firstrun == True:
            self.epg_name_list = []

            if cfg.unique.value:
                self.unique_ref = cfg.unique.value
            else:
                self.unique_ref = 0

        self.firstrun = False

        if self.category_num < len(self.categories):
            self.m3u_process_category()

        else:
            if jglob.live and jglob.has_epg_importer and jglob.epg_provider and jglob.xmltv_address != '':

                bx.buildXMLTVChannelFile(self.epg_name_list)
                bx.buildXMLTVSourceFile()

            self.progresscurrent += 1
            self['progress'].setValue(self.progresscurrent)

            self.nextjob(_('Refreshing Bouquets...'), jfunc.refreshBouquets)
            self.session.openWithCallback(self.done,
                                          MessageBox,
                                          str(len(self.categories)) +
                                          ' IPTV Bouquets Created',
                                          MessageBox.TYPE_INFO,
                                          timeout=30)
예제 #4
0
	def buildBouquets(self):
		self.nextjob(_('%s - Deleting existing bouquets...') % str(jglob.name),self.deleteBouquets)
		if self.firstrun == True:
			self.epg_name_list = []
	
		self.firstrun = False
		
		if self.category_num < len(self.categories):
			self.process_category()
		else:
			if jglob.live and jglob.has_epg_importer and jglob.epg_provider and jglob.xmltv_address != '':
				if jglob.fixepg:
					bx.downloadXMLTV()
				bx.buildXMLTVChannelFile(self.epg_name_list)
				bx.buildXMLTVSourceFile()
				self.updateBouquetJsonFile()
				jfunc.refreshBouquets()
				
			self.nextjob((''),self.loopPlaylists)
예제 #5
0
    def buildBouquets(self):
        self['progress'].setRange((0, self.progresscount))
        self['progress'].setValue(self.progresscurrent)
        self['action'].setText(
            _('Building Categories %d of %d') %
            (self.job_current, self.job_total))
        self['status'].setText('%s: %s' %
                               (self.job_type, self.job_category_name))

        if self.firstrun == True:
            self.epg_name_list = []

        self.firstrun = False

        if self.category_num < len(self.categories):
            self.process_category()

        else:
            if jglob.live and jglob.has_epg_importer and jglob.epg_provider and jglob.xmltv_address != '':
                if jglob.fixepg:
                    bx.downloadXMLTV()
                bx.buildXMLTVChannelFile(self.epg_name_list)
                bx.buildXMLTVSourceFile()

            jglob.bouquet_id += 10
            cfg.bouquet_id.value = jglob.bouquet_id
            cfg.bouquet_id.save()

            self.progresscurrent += 1
            self['progress'].setValue(self.progresscurrent)

            self.nextjob(_('Refreshing Bouquets...'), jfunc.refreshBouquets)

            self.session.openWithCallback(self.done,
                                          MessageBox,
                                          str(len(self.categories)) +
                                          _(' IPTV Bouquets Created'),
                                          MessageBox.TYPE_INFO,
                                          timeout=30)