|  02-12-2025, 03:38 PM | #166 | 
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | |
|   |   | 
|  02-12-2025, 03:39 PM | #167 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 | |
|   |   | 
|  02-12-2025, 03:45 PM | #168 | |
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | Quote: 
 Let me try to clarify: I don't see how to get a direct url to open a chat.deepseek.com query, as that add-on can do so seamlessly from selected text on any webpage. If it was possible to find an endpoint (I think that's what devs call it), one could create a custom column to query {title} by {author} on Deepseek in order to get some blurb, or other inquiries about the title and author, via book details click | |
|   |   | 
|  02-12-2025, 04:00 PM | #169 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 | |
|   |   | 
|  02-12-2025, 04:04 PM | #170 | 
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | 
			
			Yes, thanks for looking. Anyway, just a random idea, and this could be possible also with the Search Internet plugin if there was some direct api access... I examined the requests and it's clear it isnt doable with a single url
		 | 
|   |   | 
|  02-12-2025, 04:32 PM | #171 | 
| Custom User Title            Posts: 11,347 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			Was this made on a request or "just seemed like a good idea"?
		 | 
|   |   | 
|  02-12-2025, 04:36 PM | #172 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 | |
|   |   | 
|  02-12-2025, 04:41 PM | #173 | |
| Custom User Title            Posts: 11,347 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | Quote: 
 | |
|   |   | 
|  02-13-2025, 06:19 AM | #174 | |
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | Quote: 
 Code: program: make_url('https://chatgpt.com', 'q', $title  & ' ' & $author) | |
|   |   | 
|  02-16-2025, 06:52 AM | #175 | 
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | Code: program: make_url('https://phind.com/search', 'q', $title  & ' by ' & $author)I've found Phind to be a much better alternative for this purpose, so I changed my template. | 
|   |   | 
|  06-26-2025, 06:55 AM | #176 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			26 June 2025 - (in calibre preview 8.5.100 and subsequent releases) 
 Last edited by chaley; 06-29-2025 at 02:02 PM. | 
|   |   | 
|  07-08-2025, 07:57 AM | #177 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			08 July 2025 - (in calibre 8.6.0) 
 Last edited by chaley; 07-10-2025 at 10:42 PM. | 
|   |   | 
|  07-09-2025, 08:12 AM | #178 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			09 July 2025 - (in calibre 8.6.0) 
 Last edited by chaley; 07-13-2025 at 06:49 AM. | 
|   |   | 
|  07-13-2025, 06:52 AM | #179 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			12 July 2025 - (in calibre 8.7.0) 
 Last edited by chaley; 07-18-2025 at 10:06 AM. | 
|   |   | 
|  09-14-2025, 10:29 AM | #180 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			14 Sept 2025 (in calibre 8.10.100) 
 Here is an example using several of the features described above. It generates a report of book sizes for the selected books. Code: program: 
	ids = sort_book_ids(selected_books(), 'series', 1, 'title', 1);
	res = '<style> th, td {padding: 2px;}</style> <h2>Book Size Report</h2><p><table>';
	total = 0;
	def table_row(title, series, size):
		return strcat('<tr><td>', title, '</td>', 
						 '<td>', series, '</td>',
						 '<td>', if size !=# 0 then human_readable(size) else '0' fi, '</td>',
						 '</tr>', character('newline'))
	fed;
	for id in ids:
		with id:
			s = booksize();
			total = total + s;
			res = strcat(res, table_row($title, $series, s))
		htiw
	rof;
	res = strcat(res, table_row('TOTAL', '', total));
	res = strcat(res, '</table>');
	show_dialog(res)Last edited by chaley; 09-19-2025 at 03:51 AM. | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| A few questions... (template language, mainly) | Clem2605 | Library Management | 2 | 12-30-2020 03:25 AM | 
| Template Language | phossler | Calibre | 8 | 01-12-2016 04:37 PM | 
| Help needed with template language | Mamaijee | Devices | 12 | 02-19-2013 01:52 AM | 
| Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 08:32 AM | 
| Template language question | BookJunkieLI | Library Management | 7 | 02-02-2012 06:55 PM |