View Single Post
Old 10-08-2010, 06:01 AM   #11
ajnorman
Junior Member
ajnorman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Oh yes, I should have remembered that my custom recipe also removes images (which I usually don't want - the Guardian has some excellent photography but too many mugshots of columnists and pictures used for decoration rather than information). This is the offending code:

Code:
    remove_tags = [
                        dict(name='div', attrs={'class':["video-content","videos-third-column"]}),
                        dict(name='div', attrs={'id':["article-toolbox","subscribe-feeds",]}),
                        dict(name='ul', attrs={'class':["pagination"]}),
                        dict(name='ul', attrs={'id':["content-actions"]}),
                        dict(name='img'),
                        ]
Just remove the line
Code:
dict(name='img'),
to restore image downloads. To add a section to the list of modules to be ignored, change this line:

Code:
    ignore_sections = ("Sport")
to

Code:
    ignore_sections = ("Sport", "Business")
ajnorman is offline   Reply With Quote