示例#1
0
 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)
示例#2
0
 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)
示例#3
0
文件: ticker.py 项目: kblw/wot_client
 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)
示例#4
0
 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
示例#5
0
 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