Ejemplo n.º 1
0
    def __init__(self):
        printDBG('F4mDownloader.__init__ ----------------------------------')
        BaseDownloader.__init__(self)

        # instance of E2 console
        self.console = None
        self.iptv_sys = None
 def __init__(self):
     printDBG('M3U8Downloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     self.wgetStatus   = self.WGET_STS.NONE
     # instance of E2 console
     self.console = eConsoleAppContainer()
     self.iptv_sys = None
     
     # M3U8 list updater
     self.M3U8Updater = eConsoleAppContainer()
     self.M3U8Updater_appClosed_conn   = eConnectCallback(self.M3U8Updater.appClosed, self._updateM3U8Finished)
     self.M3U8Updater_stdoutAvail_conn = eConnectCallback(self.M3U8Updater.stdoutAvail, self._updateM3U8DataAvail)
     
     self.M3U8ListData = ''
     self.M3U8UpdaterRefreshDelay = 0
     self.refreshDelay = M3U8Downloader.MIN_REFRESH_DELAY
     
     # get only last fragments from first list, to satisfy specified duration in seconds
     # -1 means, starts from beginning
     self.startLiveDuration = M3U8Downloader.LIVE_START_OFFSET 
     
     # 0 means, starts from beginning
     self.skipFirstSegFromList = 0
     
     self.addStampToUrl = False
     self.totalDuration = -1
     self.downloadDuration = 0
     self.fragmentDurationList = []
Ejemplo n.º 3
0
    def __init__(self):
        printDBG('M3U8Downloader.__init__ ----------------------------------')
        BaseDownloader.__init__(self)

        self.wgetStatus = self.WGET_STS.NONE
        # instance of E2 console
        self.console = eConsoleAppContainer()
        self.iptv_sys = None

        # M3U8 list updater
        self.M3U8Updater = eConsoleAppContainer()
        self.M3U8Updater_appClosed_conn = eConnectCallback(
            self.M3U8Updater.appClosed, self._updateM3U8Finished)
        self.M3U8Updater_stdoutAvail_conn = eConnectCallback(
            self.M3U8Updater.stdoutAvail, self._updateM3U8DataAvail)

        self.M3U8ListData = ''
        self.M3U8UpdaterRefreshDelay = 0
        self.refreshDelay = M3U8Downloader.MIN_REFRESH_DELAY

        # get only last fragments from first list, to satisfy specified duration in seconds
        # -1 means, starts from beginning
        self.startLiveDuration = M3U8Downloader.LIVE_START_OFFSET

        # 0 means, starts from beginning
        self.skipFirstSegFromList = 0

        self.addStampToUrl = False
        self.totalDuration = -1
        self.downloadDuration = 0
        self.fragmentDurationList = []

        self.maxTriesAtStart = 0
 def __init__(self):
     printDBG('F4mDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
Ejemplo n.º 5
0
    def __init__(self):
        printDBG('RtmpDownloader.__init__ ----------------------------------')
        BaseDownloader.__init__(self)

        self.rtmpStatus = self.RTMP_STS.NONE
        # instance of E2 console
        self.console = None
        self.iptv_sys = None
    def __init__(self):
        printDBG('PwgetDownloader.__init__ ----------------------------------')
        BaseDownloader.__init__(self)

        self.wgetStatus = self.WGET_STS.NONE
        # instance of E2 console
        self.console = None
        self.iptv_sys = None
 def __init__(self):
     printDBG('PwgetDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     self.wgetStatus = self.WGET_STS.NONE
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
Ejemplo n.º 8
0
 def __init__(self):
     printDBG('RtmpDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     self.rtmpStatus = self.RTMP_STS.NONE
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
Ejemplo n.º 9
0
 def __init__(self):
     printDBG('HLSDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
     self.totalDuration = 0
     self.downloadDuration = 0
     self.liveStream = False
 def __init__(self):
     printDBG('MergeDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
     
     self.multi = {'urls':[], 'files':[], 'remote_size':[], 'remote_content_type':[], 'local_size':[]}
     self.currIdx = 0
Ejemplo n.º 11
0
 def __init__(self):
     printDBG('MergeDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
     
     self.multi = {'urls':[], 'files':[], 'remote_size':[], 'remote_content_type':[], 'local_size':[]}
     self.currIdx = 0
 def __init__(self):
     printDBG('WgetDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     self.wgetStatus = self.WGET_STS.NONE
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
     self.curContinueRetry = 0
     self.maxContinueRetry = 0
     self.downloadCmd = ''
Ejemplo n.º 13
0
    def __init__(self):
        printDBG('WgetDownloader.__init__ ----------------------------------')
        BaseDownloader.__init__(self)

        self.wgetStatus = self.WGET_STS.NONE
        # instance of E2 console
        self.console = None
        self.iptv_sys = None
        self.curContinueRetry = 0
        self.maxContinueRetry = 0
        self.downloadCmd = ''
Ejemplo n.º 14
0
    def __init__(self):
        printDBG('WgetDownloader.__init__ ')
        BaseDownloader.__init__(self)

        self.wgetStatus = self.WGET_STS.NONE
        # instance of E2 console
        self.console = None
        self.iptv_sys = None
        self.curContinueRetry = 0
        self.maxContinueRetry = 0
        self.downloadCmd = ''
        self.remoteContentType = None
        self.lastErrorCode = None
        self.lastErrorDesc = ''
Ejemplo n.º 15
0
 def __init__(self):
     printDBG('FFMPEGDownloader.__init__ ----------------------------------')
     BaseDownloader.__init__(self)
     
     # instance of E2 console
     self.console = None
     self.iptv_sys = None
     self.totalDuration = 0
     self.downloadDuration = 0
     self.liveStream = False
     self.headerReceived = False
     self.parseReObj = {}
     self.parseReObj['start_time'] = re.compile('\sstart\:\s*?([0-9]+?)\.')
     self.parseReObj['duration'] = re.compile('[\s=]([0-9]+?)\:([0-9]+?)\:([0-9]+?)\.')
     self.parseReObj['size'] = re.compile('size=\s*?([0-9]+?)kB')
     self.parseReObj['bitrate'] = re.compile('bitrate=\s*?([0-9]+?(?:\.[0-9]+?)?)kbits')
     self.parseReObj['speed'] = re.compile('speed=\s*?([0-9]+?(?:\.[0-9]+?)?)x')
     
     self.ffmpegOutputContener = 'matroska'
     self.fileCmdPath = ''