Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-16-2011, 01:35 AM   #1
docgnome
Junior Member
docgnome began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: Kindle Keyboard
Updated Hacker News Recipe

So I wanted to be able to click on a link to the HN comments thread of articles downloaded with the Hacker News Recipe. So I made it do that. Not being familiar with calibre recipes I'm sure I've made a pig's breakfast of it. But it does work! Hurray! If someone would like to take a look and help me clean it up that would be nice.

Also I wasn't sure what the etiquette for editing someone else's recipe was exactly. So for author I just tacked my name on the end. Hope that's OK.
Attached Files
File Type: txt hn-with-comments-link.recipe.txt (5.0 KB, 53 views)
docgnome is offline   Reply With Quote
Old 12-16-2011, 02:05 AM   #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: 25,352
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Calling parse_feeds in get obfuscated_article will cause the feed to be re-downloaded for every article. Instead override parse_feeds and store the result of calling the base class implementation, so that you can access it in get_obfuscated_article
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 12-16-2011, 01:57 PM   #3
docgnome
Junior Member
docgnome began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: Kindle Keyboard
Here's the update. I'm gonna blame that on being tired :-p
Attached Files
File Type: txt hn-with-comments-link.recipe.txt (5.0 KB, 63 views)
docgnome is offline   Reply With Quote
Old 12-16-2011, 11:40 PM   #4
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: 25,352
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Merged, cleaning up the regex.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nature news - updated recipe Alexis Recipes 3 10-05-2012 02:36 PM
Fairbanks Daily News-miner News Recipe Submission rogerx Recipes 2 08-25-2011 07:30 PM
New Fairbanks Daily News-miner News Recipe -- Need Date inclusion only rogerx Recipes 5 08-24-2011 09:12 AM
Updated Telepolis (News+Artikel) Recipe syntaxis Recipes 8 05-15-2011 06:40 AM
please help a newbie recipe hacker :) Alexis Recipes 12 01-17-2011 02:34 PM


All times are GMT -4. The time now is 03:37 PM.


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