While I know this is an old thread, I deployed the script, set the order, and enabled it, but it's still not setting the cat even though it's in the header:
<head>
<meta type="category">Books > Comics</meta>
<meta type="name">Carnage.003.2022.Digital.Zone-Empire</meta>
</head>