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 07-25-2011, 02:00 PM   #1
spedinfargo
Groupie
spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.
 
Posts: 155
Karma: 106422
Join Date: Nov 2010
Device: none
Feature Request: Detect internet connection before trying to download a recipe?

Once in a while my Internet connection for my Calibre machine is completely down. When this happens, all of my resulting Epub files are essentially empty - each feed has this error:

urlopen error [Errno 11004] getaddrinfo failed

Since I usually keep only one copy of each recipe, when my internet connection comes back up and syncs my calibre folder with Dropbox, I end up with a bunch of bad files.

Does anyone else think that having Calibre try to detect a valid internet connection before starting a job would be useful? Maybe I'll get my source code set up and try writing another patch...
spedinfargo is offline   Reply With Quote
Old 07-25-2011, 02:02 PM   #2
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,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does detect the presence of an internet connection on windows and linux with network manager. On OS X it doesn't, if you know how to do that, feel free to submit a patch, code in calibre.utils.network
kovidgoyal is offline   Reply With Quote
Advert
Old 07-25-2011, 02:51 PM   #3
spedinfargo
Groupie
spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.
 
Posts: 155
Karma: 106422
Join Date: Nov 2010
Device: none
Hmmm - I'll have to play around with it then. This is happening on a Windows 7 box.

Do you know when it checks for the connection? Is it on startup of the app or at the start of each task (recipe download)?
spedinfargo is offline   Reply With Quote
Old 07-25-2011, 03:06 PM   #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: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
iirc each task.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No internet connection the_dave Calibre 0 03-03-2011 01:03 PM
Error: No Internet connection fueg0 Calibre 9 10-08-2010 04:02 AM
ERROR: No internet connection nicois Calibre 3 09-20-2010 11:07 AM
Wireless internet connection frustrating IDS connection Socrates iRex 8 10-21-2009 12:46 PM
Kindle Dx Internet Connection salina Amazon Kindle 5 09-17-2009 12:02 PM


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


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