07-26-2013, 03:57 PM | #1561 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Aug 2010
Device: Kobo GloHD
|
While I'm bothering you, could I ask you about a completely different topic?
I want to get some metadata for the stories I download - title, author, series, but I don't want the tags, particularly not the over-abundance that you often get on AO3. What I'd really like to do is to automate what I do when I've downloaded the stories, which is to remove all the existing tags, and add one that says New. I've poked around a bit in the settings and couldn't see any obvious way of doing it, am I missing something or is it something I can do through my personal.ini? |
07-27-2013, 12:46 PM | #1562 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2013
Device: none
|
help
I am having problems with the fanfiction downloader plugin for calibre. It gives me a "http error 403: forbidden" for all stories that come from hpfanficarchive. Two weeks ago I didn't have that problem with the stories so any help is appreciated.
|
07-27-2013, 12:50 PM | #1563 | |
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
I'm waiting to hear back from the hpfanficarchive.com webmaster. |
|
07-27-2013, 06:42 PM | #1564 | |
Enthusiast
Posts: 48
Karma: 1056
Join Date: Jul 2012
Location: Central Canada
Device: Sony PRS-T1, RIM Playbook & Z10, Samsung Note, MacOSX
|
Quote:
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. |
|
07-27-2013, 07:01 PM | #1565 | |
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Actually, it's really pretty easy. Go into personal.ini under [defaults] and add: Code:
include_subject_tags: extratags:New Code:
include_subject_tags: extratags, genre, category, characters, ships, status extratags: FanFiction And you can set it differently for different sites. For example, to only change it for archiveofourown.org put this at the end: Code:
[archiveofourown.org] include_subject_tags: extratags:New |
|
07-27-2013, 11:44 PM | #1566 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Code:
ships_LIST=>(, )?(.*?)\((.*?)\)/(.*?)(, |$)=>\2/\4 (\3)\5 I've placed the code into the [epub] section, but I'm wondering if it would work better in the defaults or overrides section. However, I've run into a couple categories that include a comma. I already use these codes to get rid of periods and '|'s in the metatags: Code:
replace_metadata: category=>\|=> -\s characters=>\|=> -\s ships=>\|=> -\s characters=>\.=> category=>\.=> ships=>\.=> I've also tried: Code:
category=>Alice in Wonderland\, 2010=>Movie.Alice in Wonderland.2010 I thought that this would work: Code:
replace_metadata: category=>\,=> -\s characters=>\,=> -\s ships=>\,=> -\s The strange thing is that I looked at one of my other libraries that has my old personal ini and it had this code, which still works (at least in that library): Code:
category=>Alice in Wonderland, 2010=>Alice in Wonderland (2010) category=>(Alice in Wonderland)=>Movie.\1 Am I right in assuming that the '\,=>' should replace the commas in each individual tag? If so, where should I be placing it? Or should I be looking at the metatags that have commas in a different way? |
|
07-28-2013, 11:58 AM | #1567 |
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Fixes (hopefully) for http://dark-solace.org/elysian changes.
UPDATE Jul 28, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 07-28-2013 at 06:01 PM. Reason: Remove obsolete beta versions |
07-28-2013, 12:59 PM | #1568 | |||
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Quote:
If you plan to use the same replace_metadata for all sites and all formats, [defaults] is the most appropriate section. Then you can still put replace_metadata under specific sites if needed, or use add_to_replace_metadata in those sites. Section precedence is:
So you see, if you use [epub], anything site specific in [test1.com] will be 'overwritten' by [epub]. It gets more complicated when you consider add_to_* config lines. If you put a replace_metadata in a higher precedence section([test1.com] for example), it overwrite replace_metadata from lesser precedence sections([defaults] for example). But if you use add_to_replace_metadata instead, it does just that: adds to the replace_metadata instead of replacing it. Code:
[defaults] replace_metadata: characters=>Robert=>Bob [test1.com] add_to_replace_metadata: characters=>Susan=>Suzie Code:
[test1.com] replace_metadata: characters=>Robert=>Bob characters=>Susan=>Suzie Spoiler:
FYI, while you're consolidating, you can also apply the same regex to more than one entry at a time for example: Code:
# instead of: replace_metadata: category=>\|=> -\s characters=>\|=> -\s ships=>\|=> -\s # use: replace_metadata: category,characters,ships=>\|=> -\s Quote:
If you succeed in getting all your replace_metadata into one big list, I'd put it at the end in case any of the earlier patterns depend on commas. If you want to allow for possible sites specific regex still, put it under overrides as an add_to_replace_metadata. That will put it at the end of any and all replace_metadata chains that get built up. Code:
[overrides] add_to_replace_metadata: category,characters,ships=>,=>\s |
|||
07-28-2013, 02:50 PM | #1569 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2012
Device: Kindle & Kindle 4
|
I haven't found something quite like this in the pages, but forgive me if it's already been discussed.
I made a custom column named Fandom that I want to put shorthand or abbreviated categories into. I.E., "Ouran High School Host Club" becomes "OHC", and "How To Train Your Dragon" becomes "HTTYD" and are then loaded into the custom Fandom column. If this is possible how do I go about it? (I'm currently drugged up on Dayquil fighting a cold, so my attention span is about the same as ... @@) THank you for any and all help. |
07-28-2013, 04:21 PM | #1570 | |
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
If you want the abbreviations on the title page and in tags as well, you can make the changes to the category entry directly in personal.ini: Code:
[defaults] replace_metadata: category=>Ouran High School Host Club=>OHC category=>How To Train Your Dragon=>HTTYD However, if you want only to have the abbreviations in the Fandom column, you need to Allow custom_columns_settings (towards the bottom of the FFDL Custom Column tab) and include something like this in personal.ini: Code:
[defaults] # Adds a new 'extra' valid entry add_to_extra_valid_entries:,fandom # copy category to fandom include_in_fandom:category # replace with abbrevs in fandom replace_metadata: fandom=>Ouran High School Host Club=>OHC fandom=>How To Train Your Dragon=>HTTYD # set custom column with fandom value. custom_columns_settings: fandom=>#fandom Spoiler:
There was talk once of some of the users who do tons of data customization sharing their setups, but I don't remember seeing any posted. |
|
07-28-2013, 05:56 PM | #1571 |
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Version 1.7.34 - 28 Jul 2013
Last edited by JimmXinu; 07-28-2013 at 06:01 PM. Reason: Fix grammar |
07-28-2013, 07:17 PM | #1572 | |||||
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Quote:
Quote:
Quote:
Quote:
I'm trying to transfer my code into the default personal ini to reduce the clutter I seem to have from different tweaks, so I'm not sure where I placed the replace_metadata at the moment as I moved it a few times. But I can try placing the ',=>\s' in [overrides] and see what happens. |
|||||
07-28-2013, 10:30 PM | #1573 | |
Plugin Developer
Posts: 6,348
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
If you truly can get all the rules you want for all the sites you read into one set of replace_metadata rules, then [defaults] is the best place for them, IMO. The precedence order exists for those cases when you can't or don't want all your rules the same. For example, when you want different rules for different sites. Let's assume for the moment epub and not other formats from the same personal.ini. That simplifies the precedence order to:
The idea that overrides config values replace test1.com config values which replace defaults config values is pretty simple and I assume you get that. I confess that add_to_ can be a bit more confusing. Here's a little demo I used to remind myself of how it works. It uses the title label because that is simple to see and generally doesn't show up very much (logpage only, really). Spoiler:
|
|
07-29-2013, 02:34 AM | #1574 | ||
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
If I am looking for a story in the fandom: Transformers, I don't want to have to search through: Transformers, Transformers/Beast Wars, and Transformers Generation one. Those first two are even from the same site (FFN). Nor do I want to search through multiple tags of the same character. That's what most of my regex code is for. I thought if I could put the code in one place, I'll only need to adjust it when a site throws a new way to label a particular character. This would also reduce the amount of code I have. Quote:
I tested the code from an older personal ini which was under my FFN section: Code:
replace_metatag: #Movie category=>Alice in Wonderland, 2010=>Alice in Wonderland (2010) category=>(Alice in Wonderland|^Avatar$)=>Movie.\1 #Movie #Alice in Wonderland characters=>Alice K=>Movie.Alice in Wonderland.Alice Kingsleigh&&category=>Alice in Wonderland \(2010\) Because unfortunately, I need the &&category as I know of at least one set of character names (Sam W) that belong to two different fandoms (Transformers, Supernatural). Depending on which fandom the character belongs to, the regex will have different output. This sounds great. I can leave code that only applies to the one site in the sites section. That way, I'm not constantly reusing the same code for each site. If I could get the characters and ships to work in defaults with the &&category, I'd be all set. |
||
07-29-2013, 03:01 PM | #1575 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Jul 2013
Device: Nook Simple Touch Glowlight
|
updates even when no reason?
Hi
I have a lot of ebooks in calibre that are works-in-progress and have been downloaded via FFDL, so I use that to update them. The thing is it often wants to update fics that don't need to be updated - the log states that it wants to re-download all the chapters, and I have no idea why. Is this just a quirk? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1750 | 04-07-2024 01:20 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 95 | 03-16-2024 11:55 PM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1096 | 03-16-2024 11:28 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |