|  08-23-2018, 04:22 PM | #1 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Aug 2018 Device: PocketBook 360 plus |  Question about saving books to disk 
			
			Hello from russian user! Now i use this to saving my books: Code: Books/{tags:re([\.],/)||}/{authors}/{series:subitems(0,1)||/}{series_index:0>5.2f| | - }{series:subitems(1,10)| | - }{title}For example: 1. Books\fantastic\humorous fiction\Terry Pratchett\Discworld\(>1 books) 2. Books\fantastic\humorous fiction\(book title) So, the question is how can i do this? | 
|   |   | 
|  08-23-2018, 11:34 PM | #2 | 
| Cultivator    Posts: 94 Karma: 216 Join Date: Feb 2015 Device: PRST2 | Last edited by yonkyunior; 08-25-2018 at 07:52 AM. | 
|   |   | 
|  08-24-2018, 02:14 AM | #3 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			yonkyunior - the link you posted recurses Ψ² BR | 
|   |   | 
|  08-24-2018, 05:04 AM | #4 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Aug 2018 Device: PocketBook 360 plus | 
			
			Сould you please give me a link again?
		 | 
|   |   | 
|  08-24-2018, 05:12 AM | #5 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			@Ipsanderion - maybe it was a link to the calibre user manual - such as this one -->> The calibre template language Or maybe one of the stickies at the top of this sub-forum. BR | 
|   |   | 
|  08-24-2018, 01:24 PM | #6 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Aug 2018 Device: PocketBook 360 plus | 
			
			@BetterRed, i read this, but I have some problems understanding this information and templates.  Can I do this at all? | 
|   |   | 
|  08-24-2018, 06:57 PM | #7 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 But, if you omit the author when there is only one book what will happen when you get a second book by that author. If you're saving in same root location as a previous save, won't the first book be in two places? BR Last edited by BetterRed; 08-24-2018 at 07:04 PM. | |
|   |   | 
|  08-25-2018, 06:20 AM | #8 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			If I am understanding the question correctly you are asking for a template that will create a folder for an author if more than one book written by that author is in your library. The template language cannot do that. It can look at the metadata for the current book. It cannot make queries about other books in your library. You might be able to solve your problem with the Author_Book_Count plugin. I don't use this plugin so what I write is supposition based on the documentation. The plugin can populate a custom integer column with the number of books in the library by the author (or one of the authors) of the current book. You would use that value in the template to decide if you want the author added. One possible problem with ABC: if a book has multiple authors the it seems that the one used to populate the column could be any one of them. You might be able to get around that with the Author Book Count Hierarchy plugin, which I also do not use. If I understand the documentation correctly you would slice off the first author, extract the count, then test if that count is > 1. The template language can do this but I suspect it will be hard unless you use template General Program Mode. Note: I am not interested in trying to provide example templates using the above suggestions. I don't want to install the plugins. | 
|   |   | 
|  08-25-2018, 08:20 AM | #9 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Aug 2018 Device: PocketBook 360 plus | 
			
			Thank you very much   I'll try to think of something | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Saving to disk question | Cthulhu4u | Calibre | 1 | 08-13-2017 06:28 PM | 
| Question about saving to disk title sort | Connor Carroll | Calibre | 2 | 05-11-2013 04:00 AM | 
| Saving books to disk using {author_sort} | DragonflyKing | Library Management | 5 | 09-26-2012 05:08 AM | 
| Saving to Disk (Resort) Question | penguinaka | Library Management | 6 | 05-02-2011 01:37 AM | 
| Question about saving to disk | Xenophon | Calibre | 2 | 10-23-2009 11:10 AM |