示例#1
0
    def _go(self):

        self.log.info("Checking Mk feeds for updates")
        fl = MkFeedLoader()
        fl.go()
        fl.closeDB()

        time.sleep(3)
        #print "wat", cl

        if not runStatus.run:
            return

        cl = MkContentLoader()

        if not runStatus.run:
            return

        todo = cl.retreiveTodoLinksFromDB()

        if not runStatus.run:
            return

        cl.processTodoLinks(todo)
        cl.closeDB()
示例#2
0
文件: Run.py 项目: GJdan/MangaCMS
	def _go(self):

		self.log.info("Checking Mk feeds for updates")
		fl = MkFeedLoader()
		fl.go()
		fl.closeDB()

		time.sleep(3)
		#print "wat", cl

		if not runStatus.run:
			return

		cl = MkContentLoader()

		if not runStatus.run:
			return

		todo = cl.retreiveTodoLinksFromDB()

		if not runStatus.run:
			return

		cl.processTodoLinks(todo)
		cl.closeDB()
示例#3
0
def test():

    loader = MkFeedLoader()
    # loader.go()

    loader.getMainItems()

    # # feedItems = loader.getItemsFromContainer("Ore no Kanojo + H", loader.quoteUrl("http://download.japanzai.com/Ore no Kanojo + H/index.php"))
    # # loader.log.info("Processing feed Items")
    # for item in feedItems:
    # 	print("Item", item)

    loader.closeDB()
示例#4
0
def test():



	loader = MkFeedLoader()
	# loader.go()


	loader.getMainItems()

	# # feedItems = loader.getItemsFromContainer("Ore no Kanojo + H", loader.quoteUrl("http://download.japanzai.com/Ore no Kanojo + H/index.php"))
	# # loader.log.info("Processing feed Items")
	# for item in feedItems:
	# 	print("Item", item)

	loader.closeDB()