Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-28-2016, 11:39 AM   #1
brainvision
Connoisseur
brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.
 
brainvision's Avatar
 
Posts: 55
Karma: 603120
Join Date: Aug 2012
Location: Monte Los Angeles (Califoggia)
Device: Android Tablet, Kindle Paperwhite
2 folders as devices, send to device formatting per file

Hi there...

I know the title of this thread is not the best but I can't explain the whole thing in English language in few words..

So, I have an SD card, which I often attach to my PC to copy new ebooks that I can read later on tablet, mostly epub, pdf, cbr and cbz. I have two separate folders for ebboks into my SD card, one for epub and pdf (fiction, nonfiction, essay, poetry etc) and one for comics (CBR and CBZ, but sometimes PDF too).

I use the following formatting rules when saving comics (CBR, CBZ or PDF) ebooks
Code:
{series}/[#{series_index:>3s}]/{title} - {authors}
and this one for other king od ebooks (EPUB, AZW or PDF again):
Code:
{author_sort[0]}/{author_sort} - {title} [{pubdate}]
OK, fine, but the problem come when connecting the two folders to Calibre, which threat the different folders as a single device; I mean that I have to manually change the option from Device ---> Configure device, which I often forget to do!
So I would like to ask if there is some kind of deeper regex I could use here to solve this issue, maybe changing rules per file extension? I seem to recall that older version of Calibre had such an option, but it was a year ago or more, wasn't it?

Oh, last but least, is there a way to shorten the {pubdate} tag to years only, something like YYYY (2016, for example)?

Thanks a lot for paying attention,
see you!

Last edited by brainvision; 09-28-2016 at 11:40 AM. Reason: typo
brainvision is offline   Reply With Quote
Old 09-28-2016, 01:01 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
chaley did a similar for me back in 2010

Code:
program: 
test(	field('series'), 
	strcat(
		substr(field('series'), 0, 1),
		template("-series/{series}/{series_index:0>2s}-{title}_{id}_{authors}")
	),
	template("00noseries/{author_sort[0]}_authors/{authors}/{title}_{id}_{title}-{authors}")
)
You will see a base level to avoid a huge clutter (and possibly overload a root folder)
theducks is offline   Reply With Quote
Advert
Old 09-28-2016, 01:07 PM   #3
brainvision
Connoisseur
brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.brainvision ought to be getting tired of karma fortunes by now.
 
brainvision's Avatar
 
Posts: 55
Karma: 603120
Join Date: Aug 2012
Location: Monte Los Angeles (Califoggia)
Device: Android Tablet, Kindle Paperwhite
Quote:
Originally Posted by theducks View Post
chaley did a similar for me back in 2010

Code:
program: 
test(	field('series'), 
	strcat(
		substr(field('series'), 0, 1),
		template("-series/{series}/{series_index:0>2s}-{title}_{id}_{authors}")
	),
	template("00noseries/{author_sort[0]}_authors/{authors}/{title}_{id}_{title}-{authors}")
)
You will see a base level to avoid a huge clutter (and possibly overload a root folder)
thank you very much for your help, much appreciated, but.. in this case from what I understand a comics WITHOUT series tag will go in the second formatting rules.. Am I right?

EDIT: for comics I have new rules since a week now, I copied the old one.. now it is
Code:
{series}/{series_index:| [|] }{title} - {authors}
so that when no series is present the comics just go without strage chars like - -

Last edited by brainvision; 09-28-2016 at 01:10 PM.
brainvision is offline   Reply With Quote
Old 09-28-2016, 01:22 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I only broke up between series and no series (so you did need to know that ) for my Astak that only use the file system for the book shelf.
That template 'trick' is not needed since no series is a different branch

Note: Series does not have {Author} in front of titles because I read a lot of 'Universe' type books where the author names vary widely within the series
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send to Device /folder for Nexus 7 dkperez Library Management 2 04-12-2013 06:11 AM
Send to device in special folder structure Arco Witter Calibre 18 12-16-2011 08:31 AM
Send to device, sorted by format folder turb0sun Calibre 3 06-07-2011 05:44 PM
Change Send to Device Folder?? bucketheadmn Devices 9 03-27-2011 04:22 PM
Send to device folder structure? Slite Calibre 2 01-09-2010 05:20 AM


All times are GMT -4. The time now is 06:29 AM.


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