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, 06:27 PM   #16
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
Quick fix. Let me know if there are any problems.
Attached Files
File Type: zip independent.recipe.zip (4.8 KB, 62 views)
NotTaken is offline   Reply With Quote
Old 12-16-2011, 06:51 PM   #17
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
Just noticed that they changed the star rating to a decimal, so I changed to code a little to accommodate this.
Attached Files
File Type: zip independent.recipe.zip (4.9 KB, 78 views)
NotTaken is offline   Reply With Quote
 
Advertisement
Old 12-17-2011, 08:42 AM   #18
dasym
Connoisseur
dasym began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Dec 2008
Location: Scotland
Device: Kindle DX, Kindle. iPad 3
Quote:
Originally Posted by NotTaken View Post
Just noticed that they changed the star rating to a decimal, so I changed to code a little to accommodate this.
Works perfectly! Thanks for this.
dasym is offline   Reply With Quote
Old 12-23-2011, 04:26 PM   #19
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 320
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
If you don't like the ragged-right edge you can get justified formatting by adding the following lines to postprocess_html
Code:
        for ptag in soup.findAll('p',attrs={'align':'left'}):
            del(ptag['align'])
nickredding is offline   Reply With Quote
Old 05-28-2012, 08:57 PM   #20
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
Got rid of the "suggested topics" that appeared before news stories and added nickredding's suggestion (thanks).
Attached Files
File Type: zip independent.recipe.zip (5.0 KB, 53 views)
NotTaken is offline   Reply With Quote
Old 06-08-2012, 04:25 PM   #21
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
Just updated the recipe to add support for the new style galleries (articles with the view gallery link). You can set MAX_GALLERY_IMAGES to control how many are fetched - default is download them all.
Attached Files
File Type: zip independent.recipe.zip (5.6 KB, 45 views)
NotTaken is offline   Reply With Quote
Old 12-14-2012, 11:06 AM   #22
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
> Fixed some styling issuses due to change in html markup.

> Fixed a few issues with 'voices' articles (http://www.independent.co.uk/voices) which have a slightly different layout
Attached Files
File Type: zip independent.recipe.zip (5.7 KB, 35 views)
NotTaken is offline   Reply With Quote
Old 12-14-2012, 01:01 PM   #23
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
Turns out I hadn't finished tweaking :

> Added voices rss feed (this replaces opinions)
> Tweaked css for Voices->'IV Drip' articles (which use a slightly different layout again)
Attached Files
File Type: zip independent.recipe.zip (5.8 KB, 44 views)
NotTaken 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
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/10/21) tylau0 Recipes 0 10-21-2011 12:38 PM
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/09/21) tylau0 Recipes 0 09-21-2011 08:13 AM
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/09/20) tylau0 Recipes 1 09-20-2011 07:56 PM
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/06/26) tylau0 Recipes 3 06-28-2011 01:17 PM
Updated Recipe: Ming Pao - Hong Kong (2011/03/08) tylau0 Recipes 0 03-08-2011 08:25 PM


All times are GMT -4. The time now is 08:09 AM.


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