View Single Post
Old 06-25-2021, 01:05 AM   #7
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
That worked, though testing it showed a slight oversight since I tend to pause at the beginning of chapters. I fixed by subtracting by one.

Code:
program:
input = $#kobobookmark;
a = re(input, '.*\/file(\d+).*', '\1');


	if 
			$#fanficcat 
		&& 
			$#currentlyreading 
		&& 
			$#kobobookmark
	then
		
		strcat(format_number(subtract(a, 1), '{0:,d}'), '/',$$#chaptercount)

	fi
Though while this tested ok putting it in the column itself made an error about 'a' being an unknown identifier.

Last edited by ownedbycats; 06-25-2021 at 01:09 AM.
ownedbycats is offline   Reply With Quote