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?