08-05-2009, 05:11 AM | #1 |
Kindle DX
Posts: 21
Karma: 10
Join Date: Aug 2009
Location: The Netherlands
Device: iPad and Kindle DX
|
Recipe problem on Kindle DX
I have been trying to hack together an updated recipe for the Guardian (guardian.co.uk) and have had some success (ie images are now appearing in the feeds as well as headings).
I still have a problem however with the display of the TOC on the Kindle DX. Only the first feed is compete, with only one article being shown for the next feed. All other feeds are missing. However, when I page through the mobi document on the Kindle DX, all the articles are actually there. Any ideas what I should look for in the download HTML files from ebook-converter? John |
08-05-2009, 07:22 AM | #2 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Display of the TOC has been modified in version 0.6 for the Kindle - it now uses the Kindle's native TOC and navigation features. Look at the the bottom of the screen and you should see 'View Articles List' or 'View Sections List'. Click the joystick to go to the Kindle TOC, and then you can select articles from that interface.
G |
Advert | |
|
08-06-2009, 01:27 AM | #3 | |
Groupie
Posts: 165
Karma: 206
Join Date: Dec 2007
Location: Kansas City
Device: Kindle1, Kindle DX, Kindle DXG
|
Quote:
Thanks, El |
|
08-06-2009, 03:49 AM | #4 | |
Kindle DX
Posts: 21
Karma: 10
Join Date: Aug 2009
Location: The Netherlands
Device: iPad and Kindle DX
|
Quote:
Other feeds (eg The Telegraph) all display n the TOC OK, but the output from my recipe for the Guardian only shows one topic in the Kindle TOC. Are there specific HTML tags that the Kindle TOC uses to create the structure? John |
|
08-06-2009, 05:59 AM | #5 | |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Lots of flags and many data structures in a properly structured MOBI periodical. The process to remove the DRM probably ignored some necessary elements. I don't think it's a simple process to simply turn it back on.
G Quote:
|
|
Advert | |
|
08-06-2009, 06:12 AM | #6 | ||
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Quote:
Quote:
G |
||
08-06-2009, 07:41 AM | #7 | |
Kindle DX
Posts: 21
Karma: 10
Join Date: Aug 2009
Location: The Netherlands
Device: iPad and Kindle DX
|
Quote:
PHP Code:
John |
|
08-06-2009, 08:20 AM | #8 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
The hash marks (#) in front of the feeds after 'Front Page' cause the rest of the line to be ignored. Remove the hash marks for the feeds you want to receive, and you should be good to go.
If you want to limit the number of articles in each section, change the '20' in 'max_articles_per_feed = 20' to a lower number. G |
08-06-2009, 11:08 AM | #9 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
No need for all that complication since guardian feeds contain complete text of every article:
Code:
class Guardian_uk(BasicNewsRecipe): title = 'The Guardian' oldest_article = 2 max_articles_per_feed = 100 no_stylesheets = True use_embedded_content = True encoding = 'utf-8' language = _('English') feeds = [(u'News: Main Section', u'http://www.guardian.co.uk/theguardian/mainsection/rss')] remove_tags = [dict(name='div', attrs={'class':['related','guRssAdvert','terms']})] |
08-06-2009, 01:24 PM | #10 |
Kindle DX
Posts: 21
Karma: 10
Join Date: Aug 2009
Location: The Netherlands
Device: iPad and Kindle DX
|
That's certainly a lot simpler.
Is there any way to retain the images referred to in the RSS feed under <media:content>? John |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 2 vs Kindle 2 - Screen Refresh Problem | weatherman | Amazon Kindle | 1 | 09-16-2010 03:58 PM |
New Recipe features supporting Kindle masthead images | GRiker | Calibre | 6 | 08-27-2010 04:08 PM |
Referrer problem with recipe | Starson17 | Calibre | 7 | 06-26-2010 04:47 PM |
Catholic News Recipe Problem | funkgut | Calibre | 4 | 04-23-2010 02:08 PM |
A problem with custom recipe | joshdu1125 | Calibre | 1 | 05-03-2009 09:31 PM |