Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-26-2024, 11:28 AM   #1
SoboliUcho
Junior Member
SoboliUcho began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2024
Device: Pocketbook 634
Question Save to disk

Hi
I wan to save export my books with rules.
If they are in series and from one author to author/series/series_series_index-title-authors.epub
If they are in series and have multiple authors to series/series_series_index-title-authors.epub
If is normal to author/title-authors.epub

I tried use calibre template language but id didnt work as i want.

Code:
{program:
def autors_in_series(name):
	ret = 1;
	all_books=book_values('authors', 'series:'&name, ',', 0);
	author = list_item(all_books, 0, ',');
	for book in all_books:
		if author != book then
			ret = 0
		fi
	rof;
	return ret
	fed;

serie = field('series');
if field('series') then
	if autors_in_series(serie)==1 then
		strcat('authors}/{series}/{series} {series_index:0>3s} - {title} - {authors')
	else
		  strcat('series}/{series} {series_index:0>3s} - {title} - {authors')
	fi
else
	strcat('authors}/{title} - {author')
fi;}
when i tried use {} in stracat it dint work at all. (It end with {series}/{series} {series_index:0>3s} - {title} - {authors} filenames)

this code dont work for single author and dont add author name to file and make folder for book file

Can anybody help?
SoboliUcho is offline   Reply With Quote
Reply

Tags
calibre, save disk calibre


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save to disk. dunhill Calibre 4 11-06-2020 12:48 AM
Save to disk edeniz Editor 4 11-22-2015 04:20 PM
Save to Disk Dethmaul Library Management 2 09-03-2015 01:11 AM
Save on disk sydspanien Calibre 2 09-20-2014 05:06 PM
Save to Disk beckywc Library Management 3 06-06-2011 08:54 PM


All times are GMT -4. The time now is 09:34 AM.


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