def __requestFeed(self): yield lambda callback: callback(True) if GUI_SETTINGS.loginRssFeed.show: requestUrl = yield self.__getRssUrl() from helpers.RSSDownloader import g_downloader as g_rss if g_rss is not None: g_rss.download(self.__onRssFeedReceived, url=requestUrl) LOG_DEBUG('Requesting login RSS news', requestUrl)
def __update(self): if not GUI_SETTINGS.movingText.show: return self.__lastUpdateTime = time.time() downloadUrl = None if constants.IS_CHINA: downloadUrl = Ticker.RSS_URL from helpers.RSSDownloader import g_downloader if g_downloader is not None: g_downloader.download(self.__rssDownloadReceived, url=downloadUrl)
def __update(self): if not GUI_SETTINGS.movingText.show: return else: self.__lastUpdateTime = time.time() LOG_DEBUG('Requesting RSS news') downloadUrl = None if constants.IS_CHINA: downloadUrl = MovingText.RSS_URL from helpers.RSSDownloader import g_downloader if g_downloader is not None: g_downloader.download(self.__rssDownloadReceived, url=downloadUrl) return