Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2011, 07:24 AM   #1
mbro
Junior Member
mbro began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2011
Device: Kindle
Irish Times Recipe problem

Hi There,

I have been having problems with the Irish Times recipe for the past few days. The frontpage section works fine but the other regular sections only display a link which says "click here to continue to article". This has happened before in the past but was fixed after a day or so. I am downloading it to a kindle but a colleague of mine has the same issue with a sony device.
Thanks for your time!
mbro is offline   Reply With Quote
Old 04-15-2011, 04:35 PM   #2
phiznlil
Member
phiznlil began at the beginning.
 
Posts: 16
Karma: 12
Join Date: Mar 2011
Device: kindle 3
It isn't just you, I have been seeing the same thing. Have seen it before for a section or two but this seems more extensive and as you said and hasn't gone away again (yet).

I am reading the Irish Independent for the time being but it just isn't the same.
phiznlil is offline   Reply With Quote
Advert
Old 04-15-2011, 06:22 PM   #3
phiznlil
Member
phiznlil began at the beginning.
 
Posts: 16
Karma: 12
Join Date: Mar 2011
Device: kindle 3
I had a better look and it seems that many of the feeds are now redirects to rss.feedportals.com. Whether they are permanent or not I have no idea, anyhow, I have updated the urls in my recipe and it is working for now.

Try this:

Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = "2008, Derry FitzGerald. 2009 Modified by Ray Kinsella and David O'Callaghan, 2011 Modified by Phil Burns"
'''
irishtimes.com
'''
import re

from calibre.web.feeds.news import BasicNewsRecipe

class IrishTimes(BasicNewsRecipe):
    title          = u'The Irish Times'
    encoding  = 'ISO-8859-15'
    __author__     = "Derry FitzGerald, Ray Kinsella, David O'Callaghan and Phil Burns"
    language = 'en_IE'
    timefmt = ' (%A, %B %d, %Y)'


    oldest_article = 1.0
    max_articles_per_feed  = 100
    no_stylesheets = True
    simultaneous_downloads= 10

    r = re.compile('.*(?P<url>http:\/\/(www.irishtimes.com)|(rss.feedsportal.com\/c)\/.*\.html?).*')
    remove_tags    = [dict(name='div', attrs={'class':'footer'})]
    extra_css      = 'p, div { margin: 0pt; border: 0pt; text-indent: 0.5em } .headline {font-size: large;} \n .fact { padding-top: 10pt  }'

    feeds          = [
                      ('Frontpage', 'http://www.irishtimes.com/feeds/rss/newspaper/index.rss'),
                      ('Ireland', 'http://rss.feedsportal.com/c/851/f/10845/index.rss'),
                      ('World', 'http://rss.feedsportal.com/c/851/f/10846/index.rss'),
                      ('Finance', 'http://rss.feedsportal.com/c/851/f/10847/index.rss'),
                      ('Features', 'http://rss.feedsportal.com/c/851/f/10848/index.rss'),
                      ('Sport', 'http://rss.feedsportal.com/c/851/f/10849/index.rss'),
                      ('Opinion', 'http://rss.feedsportal.com/c/851/f/10850/index.rss'),
                      ('Letters', 'http://rss.feedsportal.com/c/851/f/10851/index.rss'),
                      ('Magazine', 'http://www.irishtimes.com/feeds/rss/newspaper/magazine.rss'),
                      ('Health', 'http://rss.feedsportal.com/c/851/f/10852/index.rss'),
                      ('Education & Parenting', 'http://rss.feedsportal.com/c/851/f/10853/index.rss'),
                      ('Motors', 'http://rss.feedsportal.com/c/851/f/10854/index.rss'),
                      ('An Teanga Bheo', 'http://www.irishtimes.com/feeds/rss/newspaper/anteangabheo.rss'),
                      ('Commercial Property', 'http://www.irishtimes.com/feeds/rss/newspaper/commercialproperty.rss'),
                      ('Science Today', 'http://www.irishtimes.com/feeds/rss/newspaper/sciencetoday.rss'),
                      ('Property', 'http://www.irishtimes.com/feeds/rss/newspaper/property.rss'),
                      ('The Tickets', 'http://www.irishtimes.com/feeds/rss/newspaper/theticket.rss'),
                      ('Weekend', 'http://www.irishtimes.com/feeds/rss/newspaper/weekend.rss'),
                      ('News features', 'http://www.irishtimes.com/feeds/rss/newspaper/newsfeatures.rss'),
                      ('Obituaries', 'http://www.irishtimes.com/feeds/rss/newspaper/obituaries.rss'),
                    ]


    def print_version(self, url):
        if url.count('rss.feedsportal.com'):
            u = url.replace('0Bhtml/story01.htm','_pf0Bhtml/story01.htm')
        else:
            u = url.replace('.html','_pf.html')
        return u

    def get_article_url(self, article):
        return article.link

Last edited by phiznlil; 04-16-2011 at 06:34 AM.
phiznlil is offline   Reply With Quote
Old 04-16-2011, 08:11 AM   #4
mbro
Junior Member
mbro began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2011
Device: Kindle
Thanks piznlil. It downloaded fine anyhow today but i only saw your post now. I will change the recipe now anyhow and see how it goes for the week. It's amazing how much you get used to the convenience of having the irish times on the kindle every morning!
mbro is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modified Irish Times Recipe phiznlil Recipes 2 04-01-2011 06:27 AM
NY Times Recipe Changes bcollier Recipes 1 03-04-2011 11:52 AM
Irish Times recipe - no longer working patrickpc Recipes 1 11-17-2010 12:16 PM
Recipe for Gulf Times rty Calibre 3 04-16-2010 12:04 PM
Irish Times Newspaper Crash.. Boyodublin Calibre 1 12-03-2008 01:08 PM


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


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