View Single Post
Old 10-01-2021, 07:11 AM   #161
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,162
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question. Here's my "Update Kobo Path" template in my send-to-device chains:

Code:
program:

	if
		$#kobopath == ''
	then

# Returns 'Fanfiction.Fandom' for fanfics
		if $$#fanficcat then
			re(sublist($tags, 0, 1, ','), '\.', '/')

# Returns 'PDF' for PDFs
		elif $formats == 'PDF' then
			'PDF'

# Returns 'Loans' for Loans
		elif $#kobostatus == 'On Loan' then
			'Loans'

# Returns topmost tag for all other books
		else
			re(sublist($tags, 0, 1, ','), '^(.*?)($|\..*$)', '\1')
		fi
else
	$#kobopath
fi
I ran into a weird situation. I had a fanfiction with the @cleanup tag. I mistakenly ran send-to-device before removing the tag. #kobopath returned '@cleanup' instead of the expected Fanfiction.Fandom tag. What happened?

Last edited by ownedbycats; 10-01-2021 at 07:16 AM.
ownedbycats is online now   Reply With Quote