06-30-2012, 08:57 PM | #1 |
Enthusiast
Posts: 39
Karma: 189896
Join Date: Feb 2012
Device: Sony PRS-T1, iPad Air
|
Fixed broken section of The Age recipe
Since I started using it several months ago, The Age recipe has always included a rogue section containing the whole main page of the site. I suspect this has happened because they changed the link to the main page at the bottom of the text only page from a relative to an absolute path.
Once fixed, it reduces the size of the resulting ePub from 1.3MB to 0.6MB, and the download time from 2.5 minutes to 0.5 minutes. I changed: Code:
title = self.tag_to_string(tag) sections[section].append({ 'title': title, 'url' : url, 'date' : strftime('%a, %d %b %Z'), 'description' : '', 'content' : '', }) Code:
title = self.tag_to_string(tag) if url != 'http://www.theage.com.au': sections[section].append({ 'title': title, 'url' : url, 'date' : strftime('%a, %d %b %Z'), 'description' : '', 'content' : '', }) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newsweek Polska - fixed recipe | admroz | Recipes | 1 | 10-16-2013 02:14 PM |
Fixed brand eins recipe | siebert | Recipes | 18 | 07-30-2013 06:56 AM |
html tag broken when jump to next section in book | toothpaste | Kindle Formats | 7 | 04-12-2012 08:58 AM |
The Age recipe broken | madno | Recipes | 0 | 08-06-2011 09:38 PM |
fixed broken reader :) | kaas | Sony Reader | 2 | 06-04-2008 07:35 PM |