Debian Codegraph @

translations/manual/nb/db_api.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 # Andreas Dreyer Hysing, 2016
7 # Kurt-Håkon Eilertsen <[email protected]>, 2014
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: calibre\n"
11 "Report-Msgid-Bugs-To: \n"
12 "POT-Creation-Date: 2021-12-01 12:56+0000\n"
13 "PO-Revision-Date: 2021-11-23 15:49+0000\n"
14 "Last-Translator: Kovid Goyal <[email protected]>\n"
15 "Language-Team: Norwegian Bokmål (http://www.transifex.com/calibre/calibre/language/nb/)\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Language: nb\n"
20 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
22 #: ../../__w/calibre/calibre/manual/db_api.rst:4
23 msgid "API documentation for the database interface"
24 msgstr ""
25
26 #: ../../__w/calibre/calibre/manual/db_api.rst:9
27 msgid ""
28 "This API is thread safe (it uses a multiple reader, single writer locking "
29 "scheme). You can access this API like this::"
30 msgstr "APIet er trådsikkert (den bruker et flere lesere, en skrivere designmønster). Du kan lese APIet slik:"
31
32 #: ../../__w/calibre/calibre/manual/db_api.rst:14
33 msgid ""
34 "If you are in a calibre plugin that is part of the main calibre GUI, you get"
35 " access to it like this instead::"
36 msgstr ""
37
38 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
39 #: calibre.db.cache.Cache:1
40 msgid ""
41 "An in-memory cache of the metadata.db file from a calibre library. This "
42 "class also serves as a threadsafe API for accessing the database. The in-"
43 "memory cache is maintained in normal form for maximum performance."
44 msgstr ""
45
46 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
47 #: calibre.db.cache.Cache:5
48 msgid ""
49 "SQLITE is simply used as a way to read and write from metadata.db robustly. "
50 "All table reading/sorting/searching/caching logic is re-implemented. This "
51 "was necessary for maximum performance and flexibility."
52 msgstr ""
53
54 #: ../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of
55 #: calibre.db.listeners.EventType:1
56 msgid "An enumeration."
57 msgstr ""
58
59 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
60 #: calibre.db.cache.Cache.add_books:1
61 msgid ""
62 "Add the specified books to the library. Books should be an iterable of "
63 "2-tuples, each 2-tuple of the form :code:`(mi, format_map)` where mi is a "
64 "Metadata object and format_map is a dictionary of the form :code:`{fmt: "
65 "path_or_stream}`, for example: :code:`{'EPUB': '/path/to/file.epub'}`."
66 msgstr ""
67
68 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
69 #: calibre.db.cache.Cache.add_books:6
70 msgid ""
71 "Returns a pair of lists: :code:`ids, duplicates`. ``ids`` contains the book "
72 "ids for all newly created books in the database. ``duplicates`` contains the"
73 " :code:`(mi, format_map)` for all books that already exist in the database "
74 "as per the simple duplicate detection heuristic used by :meth:`has_book`."
75 msgstr ""
76
77 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
78 #: calibre.db.cache.Cache.add_custom_book_data:1
79 msgid ""
80 "Add data for name where val_map is a map of book_ids to values. If "
81 "delete_first is True, all previously stored data for name will be removed."
82 msgstr ""
83
84 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
85 #: calibre.db.cache.Cache.add_format:1
86 msgid ""
87 "Add a format to the specified book. Return True if the format was added "
88 "successfully."
89 msgstr ""
90
91 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
92 #: calibre.db.cache.Cache.add_format:0
93 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
94 #: calibre.db.cache.Cache.cover:0
95 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
96 #: calibre.db.cache.Cache.format:0
97 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
98 #: calibre.db.cache.Cache.format_metadata:0
99 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
100 #: calibre.db.cache.Cache.get_next_series_num_for:0
101 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
102 #: calibre.db.cache.Cache.remove_formats:0
103 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
104 #: calibre.db.cache.Cache.rename_items:0
105 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
106 #: calibre.db.cache.Cache.search:0
107 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
108 #: calibre.db.cache.Cache.set_field:0
109 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
110 #: calibre.db.cache.Cache.tags_older_than:0
111 msgid "Parameters"
112 msgstr "Parametre"
113
114 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
115 #: calibre.db.cache.Cache.add_format:3
116 msgid ""
117 "If True replace existing format, otherwise if the format already exists, "
118 "return False."
119 msgstr ""
120
121 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
122 #: calibre.db.cache.Cache.add_format:4
123 msgid ""
124 "If True, file type plugins are run on the format before and after being "
125 "added."
126 msgstr ""
127
128 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
129 #: calibre.db.cache.Cache.add_format:5
130 msgid "Internal use only."
131 msgstr "Kun for internt bruk."
132
133 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
134 #: calibre.db.cache.Cache.add_listener:1
135 msgid ""
136 "Register a callback function that will be called after certain actions are "
137 "taken on this database. The function must take three arguments: "
138 "(:class:`EventType`, library_id, event_type_specific_data)"
139 msgstr ""
140
141 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
142 #: calibre.db.cache.Cache.all_book_ids:1
143 msgid "Frozen set of all known book ids."
144 msgstr ""
145
146 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
147 #: calibre.db.cache.Cache.all_field_for:1
148 msgid "Same as field_for, except that it operates on multiple books at once"
149 msgstr ""
150
151 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
152 #: calibre.db.cache.Cache.all_field_ids:1
153 msgid "Frozen set of ids for all values in the field ``name``."
154 msgstr ""
155
156 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
157 #: calibre.db.cache.Cache.all_field_names:1
158 msgid ""
159 "Frozen set of all fields names (should only be used for many-one and many-"
160 "many fields)"
161 msgstr ""
162
163 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
164 #: calibre.db.cache.Cache.author_data:1
165 msgid "Return author data as a dictionary with keys: name, sort, link"
166 msgstr ""
167
168 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
169 #: calibre.db.cache.Cache.author_data:3
170 msgid ""
171 "If no authors with the specified ids are found an empty dictionary is "
172 "returned. If author_ids is None, data for all authors is returned."
173 msgstr ""
174
175 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
176 #: calibre.db.cache.Cache.author_sort_from_authors:1
177 msgid ""
178 "Given a list of authors, return the author_sort string for the authors, "
179 "preferring the author sort associated with the author over the computed "
180 "string."
181 msgstr ""
182
183 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
184 #: calibre.db.cache.Cache.books_for_field:1
185 msgid ""
186 "Return all the books associated with the item identified by ``item_id``, "
187 "where the item belongs to the field ``name``."
188 msgstr ""
189
190 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
191 #: calibre.db.cache.Cache.books_for_field:4
192 msgid ""
193 "Returned value is a set of book ids, or the empty set if the item or the "
194 "field does not exist."
195 msgstr ""
196
197 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
198 #: calibre.db.cache.Cache.books_in_virtual_library:1
199 msgid "Return the set of books in the specified virtual library"
200 msgstr ""
201
202 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
203 #: calibre.db.cache.Cache.compress_covers:1
204 msgid ""
205 "Compress the cover images for the specified books. A compression quality of "
206 "100 will perform lossless compression, otherwise lossy compression."
207 msgstr ""
208
209 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
210 #: calibre.db.cache.Cache.compress_covers:4
211 msgid ""
212 "The progress callback will be called with the book_id and the old and new "
213 "sizes for each book that has been processed. If an error occurs, the new "
214 "size will be a string with the error details."
215 msgstr ""
216
217 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
218 #: calibre.db.cache.Cache.copy_cover_to:1
219 msgid ""
220 "Copy the cover to the file like object ``dest``. Returns False if no cover "
221 "exists or dest is the same file as the current cover. dest can also be a "
222 "path in which case the cover is copied to it if and only if the path is "
223 "different from the current path (taking case sensitivity into account)."
224 msgstr ""
225
226 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
227 #: calibre.db.cache.Cache.copy_format_to:1
228 msgid ""
229 "Copy the format ``fmt`` to the file like object ``dest``. If the specified "
230 "format does not exist, raises :class:`NoSuchFormat` error. dest can also be "
231 "a path (to a file), in which case the format is copied to it, iff the path "
232 "is different from the current path (taking case sensitivity into account)."
233 msgstr ""
234
235 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
236 #: calibre.db.cache.Cache.cover:1
237 msgid ""
238 "Return the cover image or None. By default, returns the cover as a "
239 "bytestring."
240 msgstr ""
241
242 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
243 #: calibre.db.cache.Cache.cover:4
244 msgid ""
245 "WARNING: Using as_path will copy the cover to a temp file and return the "
246 "path to the temp file. You should delete the temp file when you are done "
247 "with it."
248 msgstr ""
249
250 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
251 #: calibre.db.cache.Cache.cover:8
252 msgid ""
253 "If True return the image as an open file object (a SpooledTemporaryFile)"
254 msgstr ""
255
256 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
257 #: calibre.db.cache.Cache.cover:9
258 msgid "If True return the image as a QImage object"
259 msgstr ""
260
261 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
262 #: calibre.db.cache.Cache.cover:10
263 msgid "If True return the image as a path pointing to a temporary file"
264 msgstr ""
265
266 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
267 #: calibre.db.cache.Cache.data_for_find_identical_books:1
268 msgid ""
269 "Return data that can be used to implement :meth:`find_identical_books` in a "
270 "worker process without access to the db. See db.utils for an implementation."
271 msgstr ""
272
273 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
274 #: calibre.db.cache.Cache.data_for_has_book:1
275 msgid ""
276 "Return data suitable for use in :meth:`has_book`. This can be used for an "
277 "implementation of :meth:`has_book` in a worker process without access to the"
278 " db."
279 msgstr ""
280
281 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
282 #: calibre.db.cache.Cache.delete_custom_book_data:1
283 msgid ""
284 "Delete data for name. By default deletes all data, if you only want to "
285 "delete data for some book ids, pass in a list of book ids."
286 msgstr ""
287
288 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
289 #: calibre.db.cache.Cache.embed_metadata:1
290 msgid ""
291 "Update metadata in all formats of the specified book_ids to current metadata"
292 " in the database."
293 msgstr ""
294
295 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
296 #: calibre.db.cache.Cache.fast_field_for:1
297 msgid ""
298 "Same as field_for, except that it avoids the extra lookup to get the field "
299 "object"
300 msgstr ""
301
302 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
303 #: calibre.db.cache.Cache.field_for:1
304 msgid ""
305 "Return the value of the field ``name`` for the book identified by "
306 "``book_id``. If no such book exists or it has no defined value for the field"
307 " ``name`` or no such field exists, then ``default_value`` is returned."
308 msgstr ""
309
310 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
311 #: calibre.db.cache.Cache.field_for:6
312 msgid ""
313 "``default_value`` is not used for title, title_sort, authors, author_sort "
314 "and series_index. This is because these always have values in the db. "
315 "``default_value`` is used for all custom columns."
316 msgstr ""
317
318 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
319 #: calibre.db.cache.Cache.field_for:10
320 msgid ""
321 "The returned value for is_multiple fields are always tuples, even when no "
322 "values are found (in other words, default_value is ignored). The exception "
323 "is identifiers for which the returned value is always a dict. The returned "
324 "tuples are always in link order, that is, the order in which they were "
325 "created."
326 msgstr ""
327
328 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
329 #: calibre.db.cache.Cache.field_ids_for:1
330 msgid ""
331 "Return the ids (as a tuple) for the values that the field ``name`` has on "
332 "the book identified by ``book_id``. If there are no values, or no such book,"
333 " or no such field, an empty tuple is returned."
334 msgstr ""
335
336 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
337 #: calibre.db.cache.Cache.find_identical_books:1
338 msgid ""
339 "Finds books that have a superset of the authors in mi and the same title "
340 "(title is fuzzy matched). See also :meth:`data_for_find_identical_books`."
341 msgstr ""
342
343 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
344 #: calibre.db.cache.Cache.format:1
345 msgid ""
346 "Return the e-book format as a bytestring or `None` if the format doesn't "
347 "exist, or we don't have permission to write to the e-book file."
348 msgstr ""
349
350 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
351 #: calibre.db.cache.Cache.format:4
352 msgid ""
353 "If True the e-book format is returned as a file object. Note that the file "
354 "object is a SpooledTemporaryFile, so if what you want to do is copy the "
355 "format to another file, use :meth:`copy_format_to` instead for performance."
356 msgstr ""
357
358 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
359 #: calibre.db.cache.Cache.format:8
360 msgid ""
361 "Copies the format file to a temp file and returns the path to the temp file"
362 msgstr ""
363
364 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
365 #: calibre.db.cache.Cache.format:10
366 msgid ""
367 "If True and returning a path the filename is the same as that used in the "
368 "library. Note that using this means that repeated calls yield the same temp "
369 "file (which is re-created each time)"
370 msgstr ""
371
372 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
373 #: calibre.db.cache.Cache.format_abspath:1
374 msgid ""
375 "Return absolute path to the e-book file of format `format`. You should "
376 "almost never use this, as it breaks the threadsafe promise of this API. "
377 "Instead use, :meth:`copy_format_to`."
378 msgstr ""
379
380 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
381 #: calibre.db.cache.Cache.format_abspath:5
382 msgid ""
383 "Currently used only in calibredb list, the viewer, edit book, compare_format"
384 " to original format, open with, bulk metadata edit and the catalogs (via "
385 "get_data_as_dict())."
386 msgstr ""
387
388 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
389 #: calibre.db.cache.Cache.format_abspath:9
390 msgid ""
391 "Apart from the viewer, open with and edit book, I don't believe any of the "
392 "others do any file write I/O with the results of this call."
393 msgstr ""
394
395 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
396 #: calibre.db.cache.Cache.format_hash:1
397 msgid ""
398 "Return the hash of the specified format for the specified book. The kind of "
399 "hash is backend dependent, but is usually SHA-256."
400 msgstr ""
401
402 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
403 #: calibre.db.cache.Cache.format_metadata:1
404 msgid ""
405 "Return the path, size and mtime for the specified format for the specified "
406 "book. You should not use path unless you absolutely have to, since accessing"
407 " it directly breaks the threadsafe guarantees of this API. Instead use the "
408 ":meth:`copy_format_to` method."
409 msgstr ""
410
411 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
412 #: calibre.db.cache.Cache.format_metadata:6
413 msgid ""
414 "If ``True`` cached values are used, otherwise a slow filesystem access is "
415 "done. The cache values could be out of date if access was performed to the "
416 "filesystem outside of this API."
417 msgstr ""
418
419 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
420 #: calibre.db.cache.Cache.format_metadata:10
421 msgid ""
422 "If ``True`` The max_size field of the database is updated for this book."
423 msgstr ""
424
425 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
426 #: calibre.db.cache.Cache.formats:1
427 msgid ""
428 "Return tuple of all formats for the specified book. If verify_formats is "
429 "True, verifies that the files exist on disk."
430 msgstr ""
431
432 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
433 #: calibre.db.cache.Cache.get_categories:1
434 msgid "Used internally to implement the Tag Browser"
435 msgstr ""
436
437 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
438 #: calibre.db.cache.Cache.get_custom_book_data:1
439 msgid ""
440 "Get data for name. By default returns data for all book_ids, pass in a list "
441 "of book ids if you only want some data. Returns a map of book_id to values. "
442 "If a particular value could not be decoded, uses default for it."
443 msgstr ""
444
445 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
446 #: calibre.db.cache.Cache.get_id_map:1
447 msgid ""
448 "Return a mapping of id numbers to values for the specified field. The field "
449 "must be a many-one or many-many field, otherwise a ValueError is raised."
450 msgstr ""
451
452 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
453 #: calibre.db.cache.Cache.get_ids_for_custom_book_data:1
454 msgid "Return the set of book ids for which name has data."
455 msgstr ""
456
457 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
458 #: calibre.db.cache.Cache.get_item_id:1
459 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
460 #: calibre.db.cache.Cache.get_item_ids:1
461 msgid "Return the item id for item_name (case-insensitive)"
462 msgstr ""
463
464 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
465 #: calibre.db.cache.Cache.get_item_name:1
466 msgid ""
467 "Return the item name for the item specified by item_id in the specified "
468 "field. See also :meth:`get_id_map`."
469 msgstr ""
470
471 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
472 #: calibre.db.cache.Cache.get_metadata:1
473 msgid ""
474 "Return metadata for the book identified by book_id as a "
475 ":class:`calibre.ebooks.metadata.book.base.Metadata` object. Note that the "
476 "list of formats is not verified. If get_cover is True, the cover is "
477 "returned, either a path to temp file as mi.cover or if cover_as_data is True"
478 " then as mi.cover_data."
479 msgstr ""
480
481 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
482 #: calibre.db.cache.Cache.get_next_series_num_for:1
483 msgid ""
484 "Return the next series index for the specified series, taking into account "
485 "the various preferences that control next series number generation."
486 msgstr ""
487
488 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
489 #: calibre.db.cache.Cache.get_next_series_num_for:4
490 msgid "The series-like field (defaults to the builtin series column)"
491 msgstr ""
492
493 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
494 #: calibre.db.cache.Cache.get_next_series_num_for:5
495 msgid ""
496 "If True, returns a mapping of book_id to current series_index value instead."
497 msgstr ""
498
499 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
500 #: calibre.db.cache.Cache.get_proxy_metadata:1
501 msgid ""
502 "Like :meth:`get_metadata` except that it returns a ProxyMetadata object that"
503 " only reads values from the database on demand. This is much faster than "
504 "get_metadata when only a small number of fields need to be accessed from the"
505 " returned metadata object."
506 msgstr ""
507
508 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
509 #: calibre.db.cache.Cache.get_usage_count_by_id:1
510 msgid ""
511 "Return a mapping of id to usage count for all values of the specified field,"
512 " which must be a many-one or many-many field."
513 msgstr ""
514
515 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
516 #: calibre.db.cache.Cache.has_book:1
517 msgid ""
518 "Return True iff the database contains an entry with the same title as the "
519 "passed in Metadata object. The comparison is case-insensitive. See also "
520 ":meth:`data_for_has_book`."
521 msgstr ""
522
523 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
524 #: calibre.db.cache.Cache.has_format:1
525 msgid "Return True iff the format exists on disk"
526 msgstr ""
527
528 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
529 #: calibre.db.cache.Cache.has_id:1
530 msgid "Return True iff the specified book_id exists in the db"
531 msgstr ""
532
533 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
534 #: calibre.db.cache.Cache.init:1
535 msgid "Initialize this cache with data from the backend."
536 msgstr ""
537
538 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
539 #: calibre.db.cache.Cache.multisort:1
540 msgid ""
541 "Return a list of sorted book ids. If ids_to_sort is None, all book ids are "
542 "returned."
543 msgstr ""
544
545 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
546 #: calibre.db.cache.Cache.multisort:4
547 msgid ""
548 "fields must be a list of 2-tuples of the form (field_name, ascending=True or"
549 " False). The most significant field is the first 2-tuple."
550 msgstr ""
551
552 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
553 #: calibre.db.cache.Cache.pref:1
554 msgid ""
555 "Return the value for the specified preference or the value specified as "
556 "``default`` if the preference is not set."
557 msgstr ""
558
559 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
560 #: calibre.db.cache.Cache.read_backup:1
561 msgid ""
562 "Return the OPF metadata backup for the book as a bytestring or None if no "
563 "such backup exists."
564 msgstr ""
565
566 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
567 #: calibre.db.cache.Cache.remove_books:1
568 msgid ""
569 "Remove the books specified by the book_ids from the database and delete "
570 "their format files. If ``permanent`` is False, then the format files are "
571 "placed in the recycle bin."
572 msgstr ""
573
574 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
575 #: calibre.db.cache.Cache.remove_formats:1
576 msgid "Remove the specified formats from the specified books."
577 msgstr ""
578
579 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
580 #: calibre.db.cache.Cache.remove_formats:3
581 msgid "A mapping of book_id to a list of formats to be removed from the book."
582 msgstr ""
583
584 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
585 #: calibre.db.cache.Cache.remove_formats:4
586 msgid ""
587 "If True, only remove the record for the format from the db, do not delete "
588 "the actual format file from the filesystem."
589 msgstr ""
590
591 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
592 #: calibre.db.cache.Cache.remove_items:1
593 msgid ""
594 "Delete all items in the specified field with the specified ids. Returns the "
595 "set of affected book ids. ``restrict_to_book_ids`` is an optional set of "
596 "books ids. If specified the items will only be removed from those books."
597 msgstr ""
598
599 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
600 #: calibre.db.cache.Cache.rename_items:1
601 msgid ""
602 "Rename items from a many-one or many-many field such as tags or series."
603 msgstr ""
604
605 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
606 #: calibre.db.cache.Cache.rename_items:3
607 msgid ""
608 "When renaming in a series-like field also change the series_index values."
609 msgstr ""
610
611 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
612 #: calibre.db.cache.Cache.rename_items:4
613 msgid ""
614 "An optional set of book ids for which the rename is to be performed, "
615 "defaults to all books."
616 msgstr ""
617
618 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
619 #: calibre.db.cache.Cache.restore_book:1
620 msgid ""
621 "Restore the book entry in the database for a book that already exists on the"
622 " filesystem"
623 msgstr ""
624
625 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
626 #: calibre.db.cache.Cache.restore_original_format:1
627 msgid ""
628 "Restore the specified format from the previously saved ORIGINAL_FORMAT, if "
629 "any. Return True on success. The ORIGINAL_FORMAT is deleted after a "
630 "successful restore."
631 msgstr ""
632
633 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
634 #: calibre.db.cache.Cache.safe_read_lock:1
635 msgid ""
636 "A safe read lock is a lock that does nothing if the thread already has a "
637 "write lock, otherwise it acquires a read lock. This is necessary to prevent "
638 "DowngradeLockErrors, which can happen when updating the search cache in the "
639 "presence of composite columns. Updating the search cache holds an exclusive "
640 "lock, but searching a composite column involves reading field values via "
641 "ProxyMetadata which tries to get a shared lock. There may be other scenarios"
642 " that trigger this as well."
643 msgstr ""
644
645 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
646 #: calibre.db.cache.Cache.safe_read_lock:9
647 msgid ""
648 "This property returns a new lock object on every access. This lock object is"
649 " not recursive (for performance) and must only be used in a with statement "
650 "as ``with cache.safe_read_lock:`` otherwise bad things will happen."
651 msgstr ""
652
653 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
654 #: calibre.db.cache.Cache.save_original_format:1
655 msgid ""
656 "Save a copy of the specified format as ORIGINAL_FORMAT, overwriting any "
657 "existing ORIGINAL_FORMAT."
658 msgstr ""
659
660 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
661 #: calibre.db.cache.Cache.search:1
662 msgid ""
663 "Search the database for the specified query, returning a set of matched book"
664 " ids."
665 msgstr ""
666
667 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
668 #: calibre.db.cache.Cache.search:3
669 msgid ""
670 "A restriction that is ANDed to the specified query. Note that restrictions "
671 "are cached, therefore the search for a AND b will be slower than a with "
672 "restriction b."
673 msgstr ""
674
675 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
676 #: calibre.db.cache.Cache.search:6
677 msgid "Used internally (virtual fields such as on_device to search over)."
678 msgstr ""
679
680 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
681 #: calibre.db.cache.Cache.search:8
682 msgid ""
683 "If not None, a set of book ids for which books will be searched instead of "
684 "searching all books."
685 msgstr ""
686
687 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
688 #: calibre.db.cache.Cache.set_conversion_options:1
689 msgid "options must be a map of the form {book_id:conversion_options}"
690 msgstr ""
691
692 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
693 #: calibre.db.cache.Cache.set_cover:1
694 msgid ""
695 "Set the cover for this book. The data can be either a QImage, QPixmap, file "
696 "object or bytestring. It can also be None, in which case any existing cover "
697 "is removed."
698 msgstr ""
699
700 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
701 #: calibre.db.cache.Cache.set_field:1
702 msgid ""
703 "Set the values of the field specified by ``name``. Returns the set of all "
704 "book ids that were affected by the change."
705 msgstr ""
706
707 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
708 #: calibre.db.cache.Cache.set_field:3
709 msgid "Mapping of book_ids to values that should be applied."
710 msgstr ""
711
712 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
713 #: calibre.db.cache.Cache.set_field:4
714 msgid ""
715 "If True, the case of many-one or many-many fields will be changed. For "
716 "example, if a book has the tag ``tag1`` and you set the tag for another "
717 "book to ``Tag1`` then the both books will have the tag ``Tag1`` if "
718 "allow_case_change is True, otherwise they will both have the tag ``tag1``."
719 msgstr ""
720
721 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
722 #: calibre.db.cache.Cache.set_field:8
723 msgid "Used internally, you should never change it."
724 msgstr ""
725
726 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
727 #: calibre.db.cache.Cache.set_metadata:1
728 msgid "Set metadata for the book `id` from the `Metadata` object `mi`"
729 msgstr ""
730
731 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
732 #: calibre.db.cache.Cache.set_metadata:3
733 msgid ""
734 "Setting force_changes=True will force set_metadata to update fields even if "
735 "mi contains empty values. In this case, 'None' is distinguished from "
736 "'empty'. If mi.XXX is None, the XXX is not replaced, otherwise it is. The "
737 "tags, identifiers, and cover attributes are special cases. Tags and "
738 "identifiers cannot be set to None so they will always be replaced if "
739 "force_changes is true. You must ensure that mi contains the values you want "
740 "the book to have. Covers are always changed if a new cover is provided, but "
741 "are never deleted. Also note that force_changes has no effect on setting "
742 "title or authors."
743 msgstr ""
744
745 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
746 #: calibre.db.cache.Cache.set_pref:1
747 msgid ""
748 "Set the specified preference to the specified value. See also :meth:`pref`."
749 msgstr ""
750
751 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
752 #: calibre.db.cache.Cache.tags_older_than:1
753 msgid ""
754 "Return the ids of all books having the tag ``tag`` that are older than the "
755 "specified time. tag comparison is case insensitive."
756 msgstr ""
757
758 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
759 #: calibre.db.cache.Cache.tags_older_than:4
760 msgid ""
761 "A timedelta object or None. If None, then all ids with the tag are returned."
762 msgstr ""
763
764 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
765 #: calibre.db.cache.Cache.tags_older_than:7
766 msgid ""
767 "If not None the list of matches will be restricted to books that have this "
768 "tag"
769 msgstr ""
770
771 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
772 #: calibre.db.cache.Cache.tags_older_than:10
773 msgid ""
774 "A list of authors. If not None the list of matches will be restricted to "
775 "books that have these authors (case insensitive)."
776 msgstr ""
777
778 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
779 #: calibre.db.cache.Cache.user_categories_for_books:1
780 msgid ""
781 "Return the user categories for the specified books. proxy_metadata_map is "
782 "optional and is useful for a performance boost, in contexts where a "
783 "ProxyMetadata object for the books already exists. It should be a mapping of"
784 " book_ids to their corresponding ProxyMetadata objects."
785 msgstr ""