Ejemplo n.º 1
0
def test():



	# loader = MkFeedLoader()
	# loader.go()


	# feedItems = loader.getMainItems()
	# print("feed items")
	# for item in feedItems:
	# 	print("Item = ", item)
	# # 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.processLinksIntoDB(feedItems)
	# loader.closeDB()

	nt.dirNameProxy.startDirObservers()

	# runner = Runner()
	# runner.go()

	cl = MkContentLoader()
	cl.go()
Ejemplo n.º 2
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()
Ejemplo n.º 3
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()
Ejemplo n.º 4
0
def test():

    # loader = MkFeedLoader()
    # loader.go()

    # feedItems = loader.getMainItems()
    # print("feed items")
    # for item in feedItems:
    # 	print("Item = ", item)
    # # 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.processLinksIntoDB(feedItems)
    # loader.closeDB()

    nt.dirNameProxy.startDirObservers()

    # runner = Runner()
    # runner.go()

    cl = MkContentLoader()
    cl.go()