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 09-23-2011, 01:35 PM   #1
markvdvelde
Connoisseur
markvdvelde began at the beginning.
 
Posts: 54
Karma: 12
Join Date: Jan 2011
Device: Kindle
Exclamation Japan Times recipe broken?

The Japan Times recipe was update some days ago. In the "old" recipe I could replace the main feed with the sub feeds for News & Business and for Features. (I'm not interested in all the Sport stories). Now Calibre says: 'tuple' object is not callable. I have no idea what that means. My mistake or a bug?
markvdvelde is offline   Reply With Quote
Old 09-23-2011, 03:06 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by markvdvelde View Post
The Japan Times recipe was update some days ago. In the "old" recipe I could replace the main feed with the sub feeds for News & Business and for Features. (I'm not interested in all the Sport stories). Now Calibre says: 'tuple' object is not callable. I have no idea what that means. My mistake or a bug?
Does the updated recipe run without your changes?
Starson17 is offline   Reply With Quote
Advert
Old 09-25-2011, 06:32 AM   #3
markvdvelde
Connoisseur
markvdvelde began at the beginning.
 
Posts: 54
Karma: 12
Join Date: Jan 2011
Device: Kindle
Quote:
Originally Posted by Starson17 View Post
Does the updated recipe run without your changes?
Yes, it does. But as soon as I replace the feed, it won't even save the recipe.
markvdvelde is offline   Reply With Quote
Old 09-25-2011, 11:14 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error indicates you have a syntax error in your updated recipe.
kovidgoyal is offline   Reply With Quote
Old 09-27-2011, 03:26 AM   #5
a.peter
Enthusiast
a.peter began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Sep 2011
Device: Sony PRS-350, Kindle Touch
Quote:
Originally Posted by markvdvelde View Post
Yes, it does. But as soon as I replace the feed, it won't even save the recipe.
In cases like these, it would be helpful to post the modification you've made.

If i modify the recipe like this:

Code:
    feeds             = [(u'News & Business', u'http://feeds.feedburner.com/japantimes_news'),
                         (u'Features', u'http://feeds.feedburner.com/japantimes_features')]
no error is shown.

But furthermore, the addresses of these feeds have a slightly different format. You have to modify print_version like this

Code:
    def print_version(self, url):
        return url.replace('/rss/','/print/')
a.peter is offline   Reply With Quote
Advert
Old 09-30-2011, 06:12 AM   #6
markvdvelde
Connoisseur
markvdvelde began at the beginning.
 
Posts: 54
Karma: 12
Join Date: Jan 2011
Device: Kindle
Great, that worked! I must have made some mistake, although I regularly change or delete some sub-feeds.
Thanks a lot
markvdvelde is offline   Reply With Quote
Reply

Tags
japan times


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Times Of India, DNA recipes broken? mihirp Recipes 1 09-23-2011 03:09 PM
Which New York Times recipe? jdomingos76 Recipes 1 03-25-2011 08:40 PM
NY Times Recipe Changes bcollier Recipes 1 03-04-2011 11:52 AM
New York Times recipe broken? gianfri Calibre 1 03-20-2010 09:52 AM
The Times news recipe? AprilHare Calibre 1 10-10-2008 01:48 PM


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


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