def _createViewedFile(self, hashData): if hashData != None and mkdirs( GetFavouritesDir('IPTVWatched') + ('/%s/' % hashData[0])): flagFilePath = GetFavouritesDir('IPTVWatched/%s/.%s.iptvhash' % hashData) if touch(flagFilePath): return True return False
def _startDownloader(self, sts, reason): if sts: url,downloaderParams = DMHelper.getDownloaderParamFromUrl(self.url) if self._isFlvInfiniteFile(self.url): ret = touch(self.GST_FLV_DEMUX_IS_DEMUXING_INFINITE_FILE) # TODO: check returns value, and display message in case of False self.downloader.start(url, self.filePath, downloaderParams) self.setMainTimerSts(True) self.canRunMoviePlayer = True else: self.session.openWithCallback(self.close, MessageBox, _("Pobieranie nie może zostać rozpoczęte.\n Downloader %s nie działa prawidłowo.\nStatus[%s]") % (self.downloader.getName(), reason.strip()), type = MessageBox.TYPE_ERROR, timeout = 10 )
def _startDownloader(self, sts, reason): if sts: url, downloaderParams = DMHelper.getDownloaderParamFromUrl( self.url) if self._isFlvInfiniteFile(self.url): ret = touch( self.GST_FLV_DEMUX_IS_DEMUXING_INFINITE_FILE ) # TODO: check returns value, and display message in case of False self.downloader.start(url, self.filePath, downloaderParams) self.setMainTimerSts(True) self.canRunMoviePlayer = True else: self.session.openWithCallback( self.close, MessageBox, _("Pobieranie nie może zostać rozpoczęte.\n Downloader %s nie działa prawidłowo.\nStatus[%s]" ) % (self.downloader.getName(), reason.strip()), type=MessageBox.TYPE_ERROR, timeout=10)