That seems to work fine for me.
Attached is a new version that allows for configurable testing with test1.com story URLs. I put this in my personal.ini:
Code:
[test1.com]
add_to_extra_valid_entries:,tcategory
include_in_tcategory:category
replace_metadata:
category=>(The Tick|Batman)=>Book/Comics.\1
tcategory=>Book/Comics\.=>
titlepage_entries: seriesHTML,tcategory,characters,ships,genre,warnings,status,numChapters,numWords,rating,datePublished,dateUpdated,description,site
[teststory:1002]
category_list:The Tick, Harry Potter, Batman
And created a story with:
http://test1.com?sid=1002
Category appears to be 'correct' in both calibre tags and titlepage.
Here's a basic overview of setting up test stories. It only applies to test1.com sid numbers 1000 and higher.
Spoiler:
Code:
[teststory:defaults]
valid_entries:title,author_list,authorId_list,authorUrl_list,storyUrl,
datePublished,dateUpdated,numWords,status,language,series,seriesUrl,
rating,category_list,genre_list,warnings_list,characters_list
# {{storyId}} is a special case--it's the only one that works.
title:Test Story Title {{storyId}}
author_list:Test Author aa
authorId_list:1
authorUrl_list:http://test1.com?authid=1
storyUrl:http://test1.com?sid={{storyId}}
datePublished:1975-03-15
dateUpdated:1975-04-15
numWords:123,456
status:In-Progress
language:English
chaptertitles:Prologue
## Add additional sections with different numbers to get different
## parameters for different story urls.
## test1.com?sid=1000
[teststory:1000]
# note the leading commas when doing add_to_ with valid_entries and *_list
add_to_valid_entries:,favs
title:Testing New Feature {{storyId}}
author_list:Bob Smith
authorId_list:45
authorUrl_list:http://test1.com?authid=45
datePublished:2013-03-15
dateUpdated:2013-04-15
numWords:1456
favs:56
series:The Great Test [4]
seriesUrl:http://test1.com?seriesid=1
rating:Tweenie
category_list:Harry Potter,Furbie,Crossover,Puella Magi Madoka Magica/魔法少女まどか★マギカ,Magical Girl Lyrical Nanoha
genre_list:Fantasy,Comedy,Sci-Fi,Noir
warnings_list:Swearing,Violence
characters_list:Bob Smith,George Johnson,Fred Smythe
chaptertitles:Prologue,Chapter 1\, Xenos on Cinnabar,Chapter 2\, Sinmay on Kintikin,3. Chapter 3
UPDATE Remove obsolete beta versions