01-13-2012, 07:54 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: Sony PRS-T1
|
Fetch News Customize Filename
Hello,
I am using Calibre, mainly to download news and convert them into eBooks for my Sony PRS-T1, which works great. But I have a problem, when I download a news source twice a day and the filename is identical. I overwrite then the file I have on the Reader. But when the file was opened on the reader before and it remembered the page, on opening the new version, I get an error "Invalid Page". Now I want calibre--or the news fetch plugin--to include the hour and/or the calibre ID in the filename. I managed it to adjust the directory where the news ebook is downloaded to, but not the filename. And Calibre won't copy both versions (with same title and filename) to the device automatically. Is there a way to adjust the title and filename, not only the directory? And if yes, how? Thanks and regards Paul. |
01-13-2012, 08:20 AM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Simply change the title in calibre before uploading to your device (the filename for news files sent to devices is hardcoded to be title+date. If you download the same news source more than once a day, they you will get the conflict.
|
Advert | |
|
01-13-2012, 08:39 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: Sony PRS-T1
|
Thanks for the reply.
Well, I know that I can change the title of the file... but that's not what I want to do with dozens of files. So it is not possible to adjust the name. :-| |
02-06-2012, 10:18 PM | #4 |
Enthusiast
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
|
Hi Paul,
Actually, using the "Advanced mode" of the recipe editor, you can customize the recipe to include a timestamp in the title of the ebook as it is created. I haven't tested this extensively, but it seems to have the desired effect - if I fetch news from a timestamped recipe twice in a row, both files will will appear independently on my Kindle. Technically I think this is because the different timestamp cause the titles to be treated as different periodicals, not different issues of the same periodical. This may have other side effects, but eliminates the annoying side effect of the Kindle replacing one with another when you delete it. Illustrated below with a simple one-feed RSS recipe. First, as it appears by default when you switch to advanced mode: Code:
class AdvancedUserRecipe1328584372(BasicNewsRecipe): title = u'Inn at the Crossroads' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True feeds = [(u'Inn at the Crossroads', u'http://innatthecrossroads.com/feed/')] Code:
from time import time, ctime class AdvancedUserRecipe1328583601(BasicNewsRecipe): title = u'Inn at the Crossroads' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True conversion_options = {'title' : title + ' - ' + ctime(time())} feeds = [(u'Inn at the Crossroads', u'http://innatthecrossroads.com/feed/')] |
03-03-2012, 12:29 PM | #5 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2012
Device: Sony PRS T1
|
Hello,
I have similar problem. I would like add to Calibre settings an global option: include Code:
extra_css = Best, Filo. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fetch news | prony | Library Management | 1 | 07-23-2011 06:59 PM |
Fetch news | chewi | Recipes | 0 | 11-30-2010 05:09 AM |
customize new source to Fetch News | gustavoleo | Recipes | 0 | 11-09-2010 06:01 PM |
Can't Fetch News | Catew | Calibre | 2 | 07-19-2009 07:46 PM |
Fetch News | philipdavies | Calibre | 5 | 10-08-2008 04:33 AM |