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 10-06-2013, 05:55 PM   #1
natjohnson
Junior Member
natjohnson began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2013
Device: Nook Color
National Geographic Mag Calibri

For the past 2 months, National Geographic mag keeps downloading the same pages every week in Calibri while National Geographic news is OK. Anyone else?
natjohnson is offline   Reply With Quote
Old 11-30-2013, 06:01 PM   #2
jumafl
Enthusiast
jumafl began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Apr 2012
Device: Amazon Kindle Paperwhite
Yes, I'm having the same problem. The built-in National Geographic Magazine recipe downloads the same October 2013 articles every month.

I believe this is because the date is hard coded in the link to the magazine's table of contents. Here's the code:
def nejm_get_index(self):
return self.index_to_soup('http://ngm.nationalgeographic.com/2013/10/table-of-contents')

I was able to get the November and December issues by changing the date in the link to 2013/11 and 2013/12. I don't know how to make these dates variables so I'm changing the recipe manually each month.
jumafl is offline   Reply With Quote
Advert
Old 11-30-2013, 10:46 PM   #3
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: 45,323
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...f57b057efc45d1
kovidgoyal is offline   Reply With Quote
Old 12-01-2013, 08:07 PM   #4
jumafl
Enthusiast
jumafl began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Apr 2012
Device: Amazon Kindle Paperwhite
That fixed it. Thank you.
jumafl is offline   Reply With Quote
Reply

Tags
national geographic mag


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
National Geographic Spain (es) vakya Recipes 4 05-18-2012 02:19 PM
National Geographic Italia faber1971 Recipes 0 05-05-2012 10:12 AM
Would it be possible to get a recipe for National Geographic Mag? Gnome Eater Recipes 6 11-19-2011 04:23 PM
National Geographic promised, where is it? jeannieju Calibre 6 06-25-2011 01:17 AM
National Geographic (DE) xXxXxXxXxXx Recipes 0 05-21-2011 08:56 AM


All times are GMT -4. The time now is 07:07 PM.


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