01-14-2024, 11:10 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2023
Device: kindle
|
Problems of my Recipe
Hi all, I'm having some problems using Calibre to generate website content into books.
I have generated feeds with such format, [(year, [title, url])]. one url's example: http://mp.weixin.qq.com/s?__biz=Mzg5...echat_redirect I have attached a picture to show my code. |
01-14-2024, 11:05 PM | #2 |
Evangelist
Posts: 448
Karma: 82686
Join Date: May 2021
Device: kindle
|
feeds.append needs to be out of the for loop.
|
Advert | |
|
01-15-2024, 01:26 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2023
Device: kindle
|
If feeds.append is out of the loop, there will only be one article in feeds, like this picture.
There are 16 links in file articles.txt. Strangely, generated books have no content, like the picture below. I wonder what the reason is but I have no idea. |
01-15-2024, 01:34 AM | #4 |
Evangelist
Posts: 448
Karma: 82686
Join Date: May 2021
Device: kindle
|
wait even articles = [] nned to be out, put it above for loop.
|
01-15-2024, 01:52 AM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2023
Device: kindle
|
I have change my code as show in below picture.
And generated book is still blank. |
Advert | |
|
01-15-2024, 03:44 AM | #6 |
Evangelist
Posts: 448
Karma: 82686
Join Date: May 2021
Device: kindle
|
I checked the attached articles text now.
You cannot do it like this, both the file and code don't match. You can check whether articles are added by logging them self.log(line, title, url) and change code accordingly. Last edited by unkn0wn; 01-16-2024 at 05:21 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems with own recipe | mgrmgrde | Recipes | 2 | 08-26-2018 06:03 AM |
Recipe problems | aessedai44 | Recipes | 0 | 10-27-2010 12:17 AM |
Problems with economist recipe | lady kay | Calibre | 1 | 08-06-2010 07:49 AM |
Problems with Economist recipe 0.5.1 | MTBSJC | Calibre | 7 | 03-23-2009 01:54 PM |