View Single Post
Old 05-27-2022, 04:00 AM   #415
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: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Vespero View Post
Thought I'd gotten it to go off without a hitch, but there *is* one issue.
...

(I'd do more experimentation and research on my own but I'm unfortunately about to be out of the house and extremely busy for the next week and don't have the time, so sorry if this is an obvious mistake on my part)
You can't use template syntax inside a GPM template.

This should do it. The spacing might be wrong.
Code:
program:
	if 
		'cbz' in approximate_formats() 
	then
		strcat('books/', $author_sort, '/', $series, '/', $title)
	else	
		strcat('books/', $author_sort, '/', $series, '/', $series, finish_formatting($series_index, '0>2s', ' - ', ' - '), $title)
	fi
chaley is offline   Reply With Quote