Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 05-26-2015, 06:22 AM   #61
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,713
Karma: 6690879
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
How do I tell CC to automatically delete news sent by calibre?

One feature of calibre is its ability to download news from many providers on the internet. When you set up a news download, you can tell calibre how many days to keep the "books" that the news download produces. In addition, you can tell calibre to automatically send news books to a device when that device connects. In CC's case, this transfer will happen any time CC connects as a wireless device, either manually or using CC's automatic connection option.

As of CC V3.6.8, CC can mimic calibre's automatic delete after some number of days. To do this, go to CC's settings and scroll to near the bottom, looking for the "Delete older news" option. Tap that option to see the three settings that CC needs:
  • A checkbox telling CC that it is permitted to delete older news books.
  • The tag that calibre automatically puts on news books. This tag depends on the user interface language being used in calibre, not CC. If you are not running calibre in English then you should check in calibre's tag browser for the value of this tag. You must enter that tag here spelled exactly as in calibre, including upper and lower case characters.
  • The number of days that must pass after a news book is downloaded into CC before CC can delete it. Note that a "day" is actually a 24-hour period. If you download news at 7 in the morning and set this option to 1 day, the news books are eligible to be deleted after 7 in the morning the next day.
CC will check to see if books are to be deleted at one minute after midnight every day. For example, if you enter zero into the setting, all news books will be deleted at the next midnight. If you enter 1, news books will be deleted at the second midnight after they are downloaded to CC. And so on.

It could be that you want to keep books from different news sources for different numbers of days. CC will check for a special tag on the news book to determine if the time-before-delete is different. To set up a different delay, in calibre:
  • Click on Fetch News
  • Click on Scheduled to see the news sources you have set up
  • Click on the news source that you want to keep books for shorter or longer than the time you entered into CC.
  • Click the Advanced tab
  • Enter cc_delete_after_N into the Extra Tags box, where N is the number of days you want CC to keep books generated by this news source. For example, if you want CC to keep them for 10 days, enter cc_delete_after_10. N can be larger or smaller than the number in CC's settings.

CC logs automatic deletion successes and failures to the autoconnect log. You can see this log by going to CC's Settings, scrolling down to Wireless Device Connection, then tapping View automatic connection log.

Last edited by chaley; 05-26-2015 at 06:25 AM.
chaley is offline  
Old 06-23-2015, 09:14 AM   #62
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,713
Karma: 6690879
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Problems with syncing read positions in reader apps like Moon+

Several reader apps such as Moon+ have the ability to sync where you are in a book between multiple devices. They usually do this using a cloud provider such as Dropbox, storing the position in a small file in the cloud.

One problem: the book must have the same file name on every device for syncing to succeed. This can be problematic when using CC because by default the file name used for wireless device, content server, and cloud connections can be different. To solve this problem, see the answer How can I use the same file name for all three connection types?

Last edited by chaley; 06-23-2015 at 09:24 AM.
chaley is offline  
Advert
Old 06-23-2015, 10:31 AM   #63
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,713
Karma: 6690879
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
What can I use in a CC file name template?

CC file name templates are similar to calibre templates. You can use some column names, a prefix, and a suffix, and printf-style format specifications. An if-then-else construct is available to support conditional text; this construct is not supported by calibre. It does not support template functions.
  • The CC Template Language
    1. Basic syntax
      • The columns allowed are:
        • {title}, {title_sort} (title is the real title. No articles are moved)
        • {authors}, {first_author}, {author_sort}, {first_author_sort}
        • {series}, {series_index}
        • {id} (the calibre database identifier, which is a number)
        • text-type custom columns {#col_lookup_name}
      • Prefixes and suffixes are specified as in calibre:
        Code:
        {column:| prefix | suffix}
        Both the prefix and suffix part can be empty, as in:
        Code:
        {series:| - |}
      • Format specifications can be supplied as in calibre, but using printf format syntax instead of Python syntax. The usual use is to format a series index but it can be used for other purposes. Because series_index can be either an integer or a floating point number, you can supply two format specifiers: one for each. See the example below.

        Use this syntax to add a format specification:
        Code:
        {columnName:format|prefix|suffix)
        The prefix and suffix are optional, but if one is supplied then they both must be supplied. The format is also optional.

        A format specifier is a string beginning with a % character and ending with a format type character. Examples:
        • %d -- format as an integer
        • %04d -- format as an integer four digits long and zero-filled
        • %06.2f -- format as a floating point number 6 characters wide, zero-filled, with 3 digits to the left of the decimal point and 2 digits to the right of the decimal point.
        • %.10s -- format as a string to be at most 10 characters long.
        See printf format cheat sheet for more examples.

        As a special case, series_index can have two format specifiers, one to use if the index is an integer and the other to use if the index is a floating point number. The second format specifier is separated from the first by a slash. See the third example below for more details.
      • The following are examples of complete templates. The first has one segment (segments are separated by slashes):
        Code:
        {title} - {authors} ({id})
        The next has two segments:
        Code:
        {series}/{title} - {authors} ({id})
        This third example formats series index with leading zeros. Integer values are formatted with 3 digits. Floating point values are formatted to be 6 characters long: three digits to the left of the decimal point, the decimal point itself, and 2 digits to the right. In both cases the result is zero-filled.
        Code:
        {series} {series_index:%03d/%06.2f| [|]}/{title} - {authors} ({id})
    2. Conditional text (if-then-else) is specified as follows:
      Code:
      :if: some template :then: another template :else: another template :::
      CC will evaluate the template between the :if: and the :then:. If that evaluation results in a non-empty value then the :then: template is evaluated and the entire if-then-else is replaced with that result. If the evaluation of the :if: template results in an empty value then the :else: template is evaluated and the entire if-then-else is replaced with that value.

      Some notes:
      • The :else: part is optional: it is legal to have
        Code:
        :if: template :then: template 2 :::
      • In the then and else templates, the special value :tv: will be replaced with the value of the :if: template. (Yes, this doesn't have much use in the :else: part because it will always be empty.)
      • Spaces after the :if:, around :then: and :else:, and before ::: are removed.
      • You cannot nest an if-then-else inside another if-then-else. In other words, the following will not work because the second :if: is inside the first :else: part.
        Code:
        :if: {something} :then: bla :else: :if: {something else} :then: mumble ::: :::
      Some examples of if-then-else:
      • :if:{series}:then: :tv:/ :else:{first_author}/:::
        If the series is not empty then create a directory named by the series, otherwise create a directory named by the first author.
      • :if: {#genre} :then: {#genre:|Genre |} :else: {series:|Series ||} ::: {title}
        If the genre is not empty then prefix the title with Genre the-genre otherwise prefix the title with Series the-series if the series exists,
    3. CC's template processor "cleans" the result of the template as follows:
      • If a character is not in the following list then it is changed to undescore: letters, numbers, underscore, minus "-", ampersand "&", left square bracket "[", right square bracket "]", left parenthesis "(", right parenthesis ")", period ".", comma "," , slash "/", single quote "'", and equals "="
      • Multiple spaces are changed to a single space
      • Leading and trailing spaces in a segment (something between slashes) are removed
      • Leading and trailing periods in a segment are removed
      For example, if the two-segment example template above is used to generate a name for a book without a series, the result will be something like
      Code:
      bookTitle - bookAuthors (123)
      If the book has a series the result will be something like
      Code:
      bookSeries/bookTitle - bookAuthors (123)
  • Advanced Techniques
    It might be that you want to change the template based on some combination of metadata values. There are two ways to do this.
    1. Create a Yes/No column that is set to Yes for any book that would match the expression you want to use in the if test, otherwise set to empty. In this case the if test would be
      Code:
       :if: {#yesno_col} :then: {series_index:%04d} :else: {series_index:%04.2f}:::
    2. Use the order CC evaluates if/then within templates to insert information from calibre columns into the template.

      CC evaluates the if/then/else parts, substitutes the results back into the template, then evaluates the template with the substitutions. This permits you to specify arbitrary template parts inside the if statement that are used when finally evaluating the template. Consequence: you can put templates or template components in calibre columns then use these in CC. For example, the following would use a CC template stored in a text column in calibre:
      Code:
      :if:{#sometextcolumn}:then: :tv: :else:{the default template}:::
      If #sometextcolumn contains
      Code:
      :if: {series}:then:{series:|_|}:else:{first_author} :::/{series_index:%04d/%07.2f|[|] - }{title} -  {first_author}
      then that is the template that would be used.

      You can do the same thing with template components. For example, assume that #sif is a text column containing the format specifier to use for the series index for the book. The following template segment would use that format if it exists, otherwise %04d/%07.2f
      Code:
      {series} {series_index::if: {#sif} :then: :tv: :else: %04d/%07.2f:::}
      To finish the example, if #sif contains %03d/%06.2f then after processing the :if:, the template would be
      Code:
      {series} {series_index:%03d/%06.2f}
      If #sif is empty then after processing the :if:, the template would be
      Code:
      {series} {series_index:%04d/%07.2f}
      In the end you could use a different series index format for every series.


      Note that there is a bug in V4.0.5 causing % characters to be replaced before they are substituted into the template. Production release candidate V4.1.0, released to the beta group this morning, fixes this problem.

Last edited by chaley; 07-18-2015 at 06:02 AM.
chaley is offline  
Old 06-29-2015, 09:28 AM   #64
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,713
Karma: 6690879
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
What is MultiPie's privacy policy regarding CC?

Some cloud providers require us to have a privacy policy, so here it it.

All your base are belong to us. You have no chance to survive. Make your time. Ha Ha Ha.

Well, OK, that isn't our policy, but our real policy is almost as simple. Calibre Companion (CC) does not share any customer information with MultiPie or any other entity without the user taking explicit action. CC does not report to any entity, human or corporate, what books are in your library, when you connect, what you read, or how you categorize and manage your books.

However, CC has no control over other apps or systems you might use as a consequence of using CC. For example, connecting to your calibre library shares information with calibre. Reading a book shares information with the reader app. Putting your library in the cloud shares that information with the cloud provider, and accessing your information in the cloud shares that access information with the cloud provider.

A particular case: sending a CC debug log to MultiPie shares information with us about how you have been using CC. MultiPie will not use that information for any use other than to provide support to the user who sent the log and to fix bugs in CC. The debug logs are deleted as soon as the problem is resolved.
chaley is offline  
Old 07-03-2015, 08:29 AM   #65
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,713
Karma: 6690879
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Can CC connect to my library stored in the cloud?

Yes, beginning with CC Version 4.1 you can browse and download books stored in Dropbox, Microsoft OneDrive, Amazon Cloud Drive, and Box. CC provides an interface very much like the current CC Content Server interface.

For more information see the CC Cloud FAQ section.
chaley is offline  
Advert
Old 07-22-2015, 05:10 AM   #66
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,713
Karma: 6690879
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Why does CC warn against using Google Drive?

Calibre puts a unique identifier at the end of some folder and file names to ensure that it can store different books having the same title and author. Unfortunately, Google Drive uses numbers at the end of a file name to indicate conflicting versions. Because of this, Google Drive can (and does) change the calibre identifier to some other number, ensuring that calibre can no longer find the book. From calibre's point of view, the books are lost. This is not an academic concern. It has happened to many people's libraries, including our own.

For more information see the thread WARNING - Google Drive Incompatible with Calibre! in the calibre forum.
chaley is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duokan FAQ Polvo Kindle Developer's Corner 249 01-29-2021 11:49 AM
FAQ? ktb1381 Sony Reader 8 08-28-2012 07:45 AM
FAQ vitalis PocketBook 22 06-06-2010 07:37 PM
iPad FAQ Lotus Esprit Apple Devices 2 04-13-2010 08:11 PM
Where is the iSilo FAQ? Experiment 626 Lounge 0 01-18-2003 06:31 AM


All times are GMT -4. The time now is 10:31 AM.


MobileRead.com is a privately owned, operated and funded community.