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-09-2012, 06:02 AM   #1
khromov
Connoisseur
khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.
 
Posts: 83
Karma: 499304
Join Date: Jul 2011
Device: Kindle
oldest_article not working, all RSS items downloaded instead

Having issues with ebook-convert not honoring the oldest_article attribute in recepies. Instead, all artices in the feed are downloaded.

I am running this on a Raspberry Pi (which has no hardware clock), so I thought maybe something was wrong with the dates, but I have tested both linux date command and python datetime and they both work fine. (See examples below.)

Any ideas as to what might be causing oldest_article to not work?

Edit: Added python version below.

Date output (Linux)
Code:
root@raspberrypi:~# date
Mon Jul  9 11:54:30 CEST 2012
Date output (Python using datetime.datetime.now())
Code:
Current date and time using str method of datetime object:
2012-07-09 11:55:16.431494
Version info:
Code:
root@raspberrypi:~/calibre# ebook-convert --version
ebook-convert (calibre 0.8.51)
Python version:
Code:
root@raspberrypi:~# python --version
Python 2.7.3rc2
Example of affected recipe:
http://bazaar.launchpad.net/~kovid/c.../idg_se.recipe

Command being run:
Code:
ebook-convert IDG.recipe test.mobi

Last edited by khromov; 07-09-2012 at 06:08 AM.
khromov is offline   Reply With Quote
Old 07-09-2012, 10:54 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Moderator Notice
Moved the thread to Recipes calibre sub-forum. The development forum is not the place to report possible bugs. Please read the "PLEASE READ BEFORE POSTING - The purpose of this subforum" sticky post from the top of the Development forum.

Last edited by DoctorOhh; 07-09-2012 at 10:58 AM.
DoctorOhh is offline   Reply With Quote
Advert
Old 07-09-2012, 11:57 AM   #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,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-convert uses the exact same code as the calibre GUI. There is something on your system that is causing this. What that is is impossible to say offhand, you will need to run calibre from source and stick print statements in various places in feeds/__init__.py to see what is happening.

One basic check is:

calibre-debug -c "from calibre.utils.date import utcnow; print utcnow()"
kovidgoyal is offline   Reply With Quote
Old 07-09-2012, 05:07 PM   #4
khromov
Connoisseur
khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.
 
Posts: 83
Karma: 499304
Join Date: Jul 2011
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
ebook-convert uses the exact same code as the calibre GUI. There is something on your system that is causing this.
I have never run the GUI, this is a headless setup, but I guess that alone can't cause this problem.

Quote:
Originally Posted by kovidgoyal View Post
One basic check is:
calibre-debug -c "from calibre.utils.date import utcnow; print utcnow()"
Thanks, I was looking for this kind of answer, unfortunately this command seems to work, unless you can spot something amiss:
Code:
root@raspberrypi:~# calibre-debug -c "from calibre.utils.date import utcnow; print utcnow()"
2012-07-09 21:03:32.904092+00:00
Quote:
Originally Posted by kovidgoyal View Post
What that is is impossible to say offhand, you will need to run calibre from source and stick print statements in various places in feeds/__init__.py to see what is happening.
Thanks for the tip, will try to set a development environment up.
khromov is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep track of already downloaded items bartoszcisek Recipes 0 04-28-2012 02:07 PM
Tablet Where are downloaded items stored on a NT? bfollowell Nook Color & Nook Tablet 3 01-18-2012 09:28 PM
How to not create a document/mobi, if there are no unread RSS items djg Recipes 0 01-17-2012 08:11 AM
Tegan: re already downloaded feed items Starson17 Recipes 4 01-20-2011 03:07 PM
K1 (v1.2): downloaded items (Whispernet) don't show up until a restart is performed texasnightowl Amazon Kindle 4 05-01-2009 05:21 PM


All times are GMT -4. The time now is 01:31 AM.


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