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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-22-2020, 04:01 AM   #1
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,280
Karma: 5306
Join Date: Jan 2014
Device: none
Remove unneeded Save Templates

Hi.

Is there any way I can either remove templates for saving books to disk or replace them with different ones I do need?

Thanks
Attached Thumbnails
Click image for larger version

Name:	Saving books to disk.png
Views:	45
Size:	10.2 KB
ID:	176588  
Tanjamuse is offline   Reply With Quote
Old 01-22-2020, 04:42 AM   #2
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,478
Karma: 16370000
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I can't find a way in the GUI, I found mine in the gui.py.json configuration file:

Code:
  "save_to_disk_template_history": [
    "{authors} - {title}", 
    "{author_sort} - {title} - {:'format_date (raw_field ('pubdate'),'yyyy-MM-dd')'}", 
    "{author_sort} - {title} - {:'format_date (raw_field ('pubdate'),'yyyy-MM-dd')'|- |}", 
    "{author_sort} - {title}- {:'format_date (raw_field ('pubdate'),'yyyy-MM-dd')'|. |}", 
    "{title}. {author_sort}. {:'format_date (raw_field ('pubdate'),'yyyy')'|. |}", 
    "{title}.{author_sort}.{:'format_date (raw_field ('pubdate'),'yyyy')'|. |}", 
    "{author_sort}. {title}{:'format_date (raw_field ('pubdate'),'yyyy')'|. |}", 
    "{authors} {series:| - [|} {series_index:||]} {title:| - |}", 
    "/{author_sort}/{title}/{title}", 
    "{author_sort}/{title}/{title} - {authors}"
  ],
Usual caution when editing config files, close calibre, take a copy of the file before editing.

@Kovid - in Dark mode the top edit box in the Template Editor dialogue is black on black.

BR
BetterRed is offline   Reply With Quote
Old 01-22-2020, 04:49 AM   #3
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,280
Karma: 5306
Join Date: Jan 2014
Device: none
Thanks so much, it worked great. I can't figure out if they are sorted after which one has been used most? If not, would that be possible?
Tanjamuse is offline   Reply With Quote
Old 01-22-2020, 05:30 AM   #4
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,478
Karma: 16370000
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Anything is possible, but it would mean maintaining usage counts and finding someone who would want to write the consequent code - non trivial. I suspect the original design intent was set-and-forget.

When you open the list it should land on the last used.

FWIW: Job Spy has some Per Library Tweaks for Save to Disk.

BR
BetterRed is offline   Reply With Quote
Old 01-22-2020, 05:33 AM   #5
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,280
Karma: 5306
Join Date: Jan 2014
Device: none
Quote:
Originally Posted by BetterRed View Post
Anything is possible, but it would mean maintaining usage counts and finding someone who would want to write the consequent code - non trivial. I suspect the original design intent was set-and-forget.

When you open the list it should land on the last used.

FWIW: Job Spy has some Per Library Tweaks for Save to Disk.

BR
Ah , then it's much easier to edit in the .json file.

I already use the JS+ to Tweak the settings but sometimes I need to use another one than I've set.
Tanjamuse is offline   Reply With Quote
Old 01-22-2020, 05:54 AM   #6
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,478
Karma: 16370000
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I don't use StD as much now, but I used to wish the StD drop down had a couple of extra options -- with selected template and with temporary template.

BR
BetterRed is offline   Reply With Quote
Old 01-22-2020, 06:11 AM   #7
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,280
Karma: 5306
Join Date: Jan 2014
Device: none
Do you know if it is possible to combine these two StD templates, and if so how?

{#fandoms:re(:, )}/{#story_id}/{#story_id}
{#fandoms:re(§,&)}/{#story_id}/{#story_id}

I've tried several combinations without any luck.
Tanjamuse is offline   Reply With Quote
Old 01-22-2020, 06:39 AM   #8
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,478
Karma: 16370000
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I've no idea, what does the sequence '§,&' do in a regex.

But more importantly, what are you trying to achieve?

BR
BetterRed is offline   Reply With Quote
Old 01-22-2020, 07:22 AM   #9
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,280
Karma: 5306
Join Date: Jan 2014
Device: none
I'm trying to combine those two. I want to save to disk where : will be deleted and § changed to a &

The first one to get rid of underscores, the second because I use a different save to disk template on a different library where it automatically uses & instead of §.
Tanjamuse is offline   Reply With Quote
Old 01-22-2020, 09:58 AM   #10
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 18,400
Karma: 30695818
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I can't test it at the moment, but the following should work:

Code:
{:'re(re(field("#fandoms"),":"," "),"§","&")'}/{#story_id}/{#story_id}
davidfor is offline   Reply With Quote
Old 01-23-2020, 03:18 AM   #11
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,280
Karma: 5306
Join Date: Jan 2014
Device: none
Thank you so much, it worked great.

Tanjamuse is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
different save templates in my device maqueca Calibre 2 05-05-2019 07:49 PM
Multiple save to disk templates? fidvo Library Management 5 03-10-2014 06:38 PM
Multiple 'save to disc' templates? redscarlett Library Management 12 09-09-2013 01:43 PM
plugin for favorite save to disk templates gabby98 Plugins 3 07-03-2013 02:35 PM
How to remove unwanted Save-to-disk templates alexmobile Calibre 5 02-22-2012 06:54 AM


All times are GMT -4. The time now is 03:25 PM.


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