View Single Post
Old 10-30-2010, 08:42 PM   #13
Bullpeeper
Junior Member
Bullpeeper began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle
Thanks!

Quote:
Originally Posted by Starson17 View Post
I finally had time to look at this.
Most of your links from the RSS feed work normally, but occasionally a link like this:

Code:
http://www.dispatch.com/live/content/local_news/stories/2010/10/24/an-illusion-of-treatment.html?sid=101
is sent off to a link like this:
Code:
http://www.dispatchpolitics.com/live/content/local_news/stories/2010/10/24/copy/an-illusion-of-treatment.html?adsec=politics&sid=101
resulting in the problems you see. (Don't you love the political ad season!)
This is done by adding a <meta http-equiv="refresh"> tag to the code.
Add this to your recipe to prevent it:
Code:
remove_tags.append(dict(name = 'meta', attrs = {'http-equiv': 'refresh'}))
Starson17 - Greatly appreciate you taking a further look at this. I'm going to cut and paste your code or the code offered by kovidgoyal. This Calibre thing and the recipes for news sources is my favorite thing about my Kindle lately ...
Bullpeeper is offline   Reply With Quote