![]() |
#16 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
|
Nice! I've put in a few hours and rewritten and expanded the script. It now takes the date directly from the first download link on the page. Many other things have changed as well, so take a look
![]() |
![]() |
![]() |
![]() |
#17 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Nov 2009
Device: Sony PRS600
|
Hi guys,
As a subscriptor to the NRC this is a very interesting post. Unfortunately I can not get it all to work with the latest nrc_v2 script. The script just stops after changing the meta-data. Therefore the book will not be added to Calibre and more (rest of the script). No warnings, but the file is created just fine. Any suggestions? |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
|
Quote:
If it did download correctly, you may have stumbled upon the same problem that JvdW encountered, which I personally have not. What operating system and version of Calibre are you using? As a sort-of fix, you can add the following to the start of each calibre-related line (ebook-meta, calibredb, calibre-debug) Code:
start /wait |
|
![]() |
![]() |
![]() |
#19 | |
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
The real problem is that since Calibre-0.6.17 this doesn't work anymore. Since that version Kovid has changed the layout of the Calibre folder, changed the installer and also changed the way Calibre is packaged. One of these changes is causing this problem. A suggestion of Kovid is to use powershell to start the batch file, but I would like to keep the number of external programs needed to a minimum of zero if possible. Regards, Joop |
|
![]() |
![]() |
![]() |
#20 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Nov 2009
Device: Sony PRS600
|
The option 'start /wait' works for me. I guess the script was trying to add the epub to the database but was blocked by the previous proces.
Thanks! Now going to schedule this script for ma-vr 15:10 :-) |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Hello Kovid,
Hoping that you read posts on old threads, sorry to revive this one because of the context it supplies. Quote:
I had .7.23 on my computer at work and could run the batchfile and Calibre would automatically send the news to my reader (505). At home it didn't work anymore but there I try to keep up with the latest version. There is mentioning in the changelog about a change in sending news to the reader with multiple libraries but I don't know if that is the cause but the line of code you suggested doesn't work anymore with versions above .7.23. I do see it being present in dynamic.pickle but can't see if its correct. Downloading news through a recipe works OK in .7.27 Do you have any idea what might be cause this and a pointer to fix it? Thanks in advance, Joop |
|
![]() |
![]() |
![]() |
#22 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah this setting was moved inside the db (otherwise if you use multiple libraries, the ids can conflict).
Code:
from calibre.library import db; db = db(); import pprint; pprint.pprint(db.prefs) |
![]() |
![]() |
![]() |
#23 | |
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
Code:
start /wait calibre-debug -c " from calibre.library import db; db=db(); from calibre.utils.config import prefs; ids = db.prefs.get('news_to_be_synced', set([])); ids.append(%id%); db.prefs.set('news_to_be_synced', ids); " Any room for improvement? Thanks, Joop |
|
![]() |
![]() |
![]() |
#24 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
in the get use [] as the default not set([])
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatic News Download | brewjono | Calibre | 3 | 10-09-2010 08:49 AM |
automatic lrf for news fetching? | tuncaysu | Calibre | 2 | 01-15-2010 09:13 AM |
automatic tag changes for news feeds in calibre? | SDgirl | Sony Reader | 0 | 06-03-2009 09:11 PM |
My automatic "feeds to Memory card" trick... | sherman | Calibre | 0 | 11-22-2008 04:42 PM |
Having trouble getting feeds to work; willing to help but don't know how | tdavie | Calibre | 12 | 10-05-2008 08:01 PM |