11-19-2010, 06:07 AM | #1 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
How to disable conversion date in title and source link in page?
Hi,
I'm using the python recipe for brand eins and there are two thinks I'd like to change in the generated epubs: - The ebook title is set from the recipe, but calibre seems to append automatically the conversion date in brackets. Is it possible to prevent that from the recipe? - At the end of each source page there is a note that it was converted via calibre and a link to the source url. Is it possible to disable this note and link from the recipe? Ciao, Steffen |
11-19-2010, 05:52 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
no and no
|
Advert | |
|
11-20-2010, 03:06 AM | #3 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Hi,
I've seen from other recipes that adding the line Code:
timefmt = '' If the second one isn't possible now, could you implement a switch to disable it or a function to override in a future version of calibre? Thanks, Steffen |
11-20-2010, 10:12 AM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have no interest in doing that, but patches are welcome.
|
11-21-2010, 07:40 AM | #5 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
You lied, nothing is impossible in python
Proof is here: https://www.mobileread.com/forums/sho....php?p=1227446 I admit that the solution is ugly as I have to replicate lots of code, so a switch within calibre would be very nice. Ciao, Steffen |
Advert | |
|
11-21-2010, 08:26 AM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2010
Device: Kindle
|
@kovidgoyal: Please include the new version of the Recipe in the next version of Calibre.
The newest version can be found here: https://github.com/consti/BrandEins-...andeins.recipe It includes changes made by Steffen; Thanks! |
11-21-2010, 10:26 AM | #7 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
well sure you can do pretty much anything in principle. But I am not going to put those changes into the builtin recipe. You are of course free to continue using the custom recipe for yourself
|
11-21-2010, 12:53 PM | #8 | ||
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Quote:
Quote:
Steffen |
||
11-21-2010, 01:21 PM | #9 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I've already merged the other improvements.
|
11-21-2010, 01:22 PM | #10 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
In this list: Quote:
|
||
11-21-2010, 01:29 PM | #11 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
|
11-21-2010, 05:47 PM | #12 |
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Hi,
I've noticed that you also removed the Code:
timefmt = '' This feature used by serveral other official recipes and as the brand eins recipe fetches complete issues from the web archive, the content should always be the same regardless of the conversion date, so I see no point in including it in the title. Ciao, Steffen |
11-21-2010, 09:05 PM | #13 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm confused are you saying the downloaded content will be the same if I run the recipe today and a onth from now, the resulting ebook will be the same?
dates in titles are useful or people that use ereadres that don't allow sorting by dates/dont display dates in their UI |
11-22-2010, 03:56 AM | #14 | ||
Developer
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
|
Quote:
By default, the recipe fetches the last fully available issue (as for the latest issue, the one which is currently sold at the news stands, only a few selected articles are available online, so the recipe defaults to the issue before the current one to get a complete issue) from the archive, so if I run the recipe today and in a month, I'll probably get two different issues downloaded. But if I download the same issue (for example by modifing the issue selection in the recipe or now via the username setting) again in a month, the content will be the same as it is now. brand eins is a monthly published print magazine, but they are kind enough to have all their back issues available for free on their online web archive. So I'd like to have the output of this calibre recipe as close as possible to an electronic version of their printed magazine, resembling an EPUB issue of brand eins they would probably publish themselves. Quote:
I hope you can now understand my motivation of that change. Ciao, Steffen |
||
11-22-2010, 11:58 AM | #15 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In that case, the better approach is that rather than setting self.title, set self.timefmt.
See for example the Atlantic recipe. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
All recipes have Unknown author and title- From source Sept 30 | Starson17 | Calibre | 22 | 10-03-2010 11:38 AM |
Suggestion: USA recepit have date in title | DBDigital | Calibre | 1 | 06-12-2010 01:33 PM |
Removing date from periodical title | elmoglick | Calibre | 2 | 06-06-2010 02:18 PM |
Rename output Title of (custom) news source | ischeriad | Calibre | 4 | 02-16-2010 06:14 AM |
Date in Title when Fetching News | Nigel H | Calibre | 1 | 01-13-2010 11:57 AM |