Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 01-22-2012, 02:19 PM   #1
Locarno
Member
Locarno began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
Troubleshooting slow user recipes

I have a few user recipes that have 5-15 RSS feeds in them, and they simply take too long to fetch (some up to an hour). I would presume that one or two feeds are slow to fetch because of the nature of their site setup, server issues, or feed setup, but I'm not sure.

How would I go about troubleshooting these recipes to find out the problem feeds or otherwise figure out how to fix my recipe? My first thought was to look through the "job details" log, but there are no timestamps in there or other info to show me the slow steps. Any hints? Anything else I should try to speed these up?
Locarno is offline   Reply With Quote
Old 01-22-2012, 04:17 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can implement populate_article_metadata in the recipe and have it print out a timestamp alongwith the article title/url for debugging
kovidgoyal is offline   Reply With Quote
Advert
Old 01-22-2012, 05:38 PM   #3
TechnoCat
Zealot
TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'TechnoCat gives new meaning to the word 'superlative.'
 
Posts: 131
Karma: 150390
Join Date: Nov 2011
Location: Pacific NorthWest
Device: Kindle Fire
Run them at the command line where you can see what's happening. e.g.
\Program Files\Calibre2\ebook-convert.exe" myrecipe.recipe .epub --test -vv --debug-pipeline debug
TechnoCat is offline   Reply With Quote
Old 01-22-2012, 08:09 PM   #4
Locarno
Member
Locarno began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
Quote:
Originally Posted by kovidgoyal View Post
You can implement populate_article_metadata in the recipe and have it print out a timestamp alongwith the article title/url for debugging
Thanks Kovid. Where do I do this? I tried adding "populate_article_metadata = 1" to the class in advanced mode, but that didn't seem to do anything.
Locarno is offline   Reply With Quote
Old 01-22-2012, 10:08 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Code:
    def populate_article_metadata(article, soup, first):
          print (time.time(), article.title)
kovidgoyal is offline   Reply With Quote
Advert
Old 03-23-2012, 10:09 PM   #6
Locarno
Member
Locarno began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
Quote:
Originally Posted by kovidgoyal View Post
Code:
    def populate_article_metadata(article, soup, first):
          print (time.time(), article.title)
OK, I added this to the very beginning of my class, but still nothing. What else do I need to do? Here is my recipe:

Code:
class OPML2PY_1326333899(BasicNewsRecipe):
	def populate_article_metadata(article, soup, first):
		print (time.time(), article.title)
	
	title          = u'Baseball'
	oldest_article = 2
	max_articles_per_feed = 100
	populate_article_metadata = 1

	feeds          = [
		(u'38 Pitches', u'http://38pitches.com/feed/'), 
		(u'A Fans View', u'http://www.startribune.com/rss/?did=78693312'), 
	....
	]
Locarno is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Book (Kindle) - Circle of Friends Cookbook 25 Slow Cooker Recipes koland Deals and Resources (No Self-Promotion or Affiliate Links) 2 05-14-2011 04:38 AM
Troubleshooting--> Firmware? User error? gah. the grue Astak EZReader 13 08-31-2010 06:35 PM
Troubleshooting miklizro Astak EZReader 28 08-23-2010 08:21 PM
Free on Kindle - Not Your Mother's Slow Cooker Recipes for Entertaining koland Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-23-2009 09:52 PM
calibre - very slow conversion, very slow on PRS cremofix Calibre 3 06-10-2009 04:21 PM


All times are GMT -4. The time now is 05:52 AM.


MobileRead.com is a privately owned, operated and funded community.