View Single Post
Old 07-27-2013, 06:42 PM   #1564
seabream
Enthusiast
seabream can extract oil from cheeseseabream can extract oil from cheeseseabream can extract oil from cheeseseabream can extract oil from cheeseseabream can extract oil from cheeseseabream can extract oil from cheeseseabream can extract oil from cheeseseabream can extract oil from cheese
 
Posts: 48
Karma: 1056
Join Date: Jul 2012
Location: Central Canada
Device: Sony PRS-T1, RIM Playbook & Z10, Samsung Note, MacOSX
Quote:
Originally Posted by SallyK View Post
remove all the existing tags, and add one that says New.

is it something I can do through my personal.ini?
The short answer is that you can do it through personal.ini.

The middle length answer is that there's probably more than one way to do this, and what to do may vary by site. What I have below is just the first thing that occurred to me and may not be the simplest solution. [Edit: A much simpler solution is described in the post immediately following this by JimmXinu. If you haven't read the one here yet, I recommend skipping to his.]

You can use the replace metadata function to match any string in the category(ies) of tag that you don't want to receive, and replace it with an empty string, functionally deleting it (them, if there are multiple tags). There's more than one way to add "New", and which one is best depends on what you want to do with it. You can do it in personal.ini, (Add a line at the end of your list of metadata replacements that matches anything (including empty) in the category of metadata that you want "New" to appear in and replaces it with "New") but if you are using it to manage a reading list, then it would probably be better to use the Reading List plugin together with FFDL, and Calbre's custom columns. You can have Reading List add a tag to a given column, (e.g.: a Read/Unread column, which you'd define in Calibre's custom columns settings) and have FFDL automatically add new/updated stories to the relevant list (set in the Reading List tab of the FFDL settings). The nice thing about this is that, if your device is compatible, when you sync the reading list, the Read/Unread can get updated automatically.

Note: If you use replace_metadata to do this, you need to do the search and replace for each class of metadata (defined in personal.ini) that generates a tag you don't want (I believe). So for example, for AO3 if you want nothing more than Title, Author, Series, you would need to do it for fandoms, freeformtags, ao3categories, characters, and ships, off the top of my head.

The long answer would have all the lines for the metadata replacement written out, but since I don't know which of the many, many sites FFDL is compatible with you actually use, and hence which metadata you want to delete, that seems like potential for a lot of wasted effort.

The basic format though would be (I believe):
metadata type=>search string=>replacement string (either nothing for deleting, or New, if you're doing it this way)
e.g.:
characters=>(.*)=>

The space before characters is necessary. "(.*)" matches anything
If you want to know more about constructing search strings using Python's regular expressions - see
http://manual.calibre-ebook.com/rege...regexptutorial
http://docs.python.org/2/library/re.html http://docs.python.org/2/howto/regex.html#regex-howto

If you want more on how to use personal.ini's replace_metadata beyond what's described in personal.ini, there's quite a bit in this thread if you go back a bit, mostly starting from around version 1.6.8, or September 2012, .

If something isn't clear, and unpacking is required, feel free to ask, I've certainly found people to be helpful here.

Last edited by seabream; 07-27-2013 at 10:36 PM. Reason: Removing the emoticon at the top. That was accidental. Second edit points to JimmXinu's better solution.
seabream is offline