View Single Post
Old 03-11-2017, 11:27 AM   #1850
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@mehetabelo:

The Standard Column settings are all or nothing, not by site. custom_columns_settings cannot effect standard columns like title.

There are a number of ways to handle the issues you mentioned using replace_metadata.

Code:
## Under [royalroadl.com] or even [defaults] you could modify all
## titles to remove "delayed" / "dropped" / "editing" / "discontinued"
## in the title.  However, it would need tweaking sometimes as
## different authors will no doubt include separators you'd need to
## include.  And sometimes those words are legitimate.
add_to_replace_metadata:
 title=> *(delayed|dropped|editing|discontinued) *=>

## Under [royalroadl.com] you can change the specific titles you find.
## That won't help if the author changes the title.  Here are some
## examples from my own personal.ini for SB.
[forums.spacebattles.com]
add_to_replace_metadata:
 title=>Wail of the Banshee 3: Boxhead Blues and the Zombocalypse=>Wail of the Banshee
 title=>Alchemical Solutions: STORY-ONLY THREAD=>Alchemical Solutions

## A third way is to explicitly set the title by story URL.  There are
## further two ways to do that:

## Add a line to replace_metadata that specifies the storyUrl, but
## won't apply if the author changes the title radically, but ^.*$
## would match all.
[forums.spacebattles.com]
add_to_replace_metadata:
  title=>^Forged in Blood and Bone.*=>Forged in Blood and Bone with Omake&&storyUrl=>https://forums.spacebattles.com/posts/20478422/

## Add a section for a specific story that set the title (and/or other
## metadata) regardless.  Can include extratags or replace_br_with_p
## etc to apply only to that story.  Example:
[https://forums.spacebattles.com/posts/20867703/]
replace_metadata:
 title=>.*=>Belated Battleships: An Old Cat
 author=>.*=>Skywalker_T-65

## You can add to the description like this, but it may cause issues
## with the description HTML.
[https://forums.spacebattles.com/posts/20867703/]
add_to_replace_metadata:
 description=>(.*)=>\1 Words added to desc
All of these examples show add_to_replace_metadata separately, but you should only have one of each section and one add_to_replace_metadata list, etc in each section.

See these wiki pages for more details about managing your ini and metadata.
JimmXinu is offline   Reply With Quote