04-25-2013, 01:56 PM | #1336 |
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@Jade Aislin -
It's custom_columns_settings (note columnS), not custom_column_settings. That's your first problem. Re: invalid group reference -- \1 matches the first () group. No (), no group. Needs to be more like: ships=>(Bilbo Baggins)=>Book/Comics.LOTR.\1 |
04-25-2013, 04:38 PM | #1337 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Thanks. |
|
04-25-2013, 07:57 PM | #1338 |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
I've run into another problem with the ships tags. Some of the ships put the names together with an '&' sign. However, I want '/' between names so that I don't duplicate pairings. For example, I want to only see Benton Fraser/Ray Kowalski, not Benton Fraser & Ray Kowalski.
I first tried: Code:
ships=> & =>/ Code:
ships=>^ /amp; $=>/ I even tried to convert the '&' without looking for the spaces around it as well and I tried using ^ & $ to try to get the entire section I wanted to change. It always left the ' /amp; '. Any help would be appreciated. |
04-25-2013, 09:01 PM | #1339 |
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Because the text comes from an HTML source (and three of the four output formats use HTML), the metadata is kept in memory with HTML entities in it.
So this should work for you: ships=> & =>/ |
04-25-2013, 09:57 PM | #1340 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Would using codes like the '&' work on the spaces? Is there a cheat sheet that would show me the special symbols that I might have trouble replacing? |
|
04-25-2013, 11:07 PM | #1341 | ||
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
In the meantime, you can use this: Code:
replace_metadata: ships=>[ ]&[ ]=>/ Quote:
|
||
04-25-2013, 11:46 PM | #1342 |
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Attached is a version that doesn't strip spaces from around the replace_metadata regular expressions. However, I can't stop the .ini parser stripping trailing spaces. So I've added a '\s'->' ' feature for the replacement string.
Code:
## So this works now: replace_metadata: ships=> & =>/ ## But to do the reverse, replace name/name with name & name, ## you have to do this: replace_metadata: ships=>/=>\s&\s Last edited by JimmXinu; 04-27-2013 at 07:29 PM. Reason: Remove obsolete beta versions |
04-25-2013, 11:51 PM | #1343 |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
It seems to happen rarely, so using the [ ] may be enough. Your code did work for me. I was also able to generalize another tag with them. I wanted to generalize the character: Ori - Character, by creating a general code to strip the ' - Character' because I know there will be other characters with the same problem. Putting in the brackets worked perfectly. Thanks.
|
04-25-2013, 11:58 PM | #1344 |
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
FYI, before people start reporting it to me as an FFDL problem, fanfiction.net appears to be down just at the moment.
|
04-26-2013, 12:15 AM | #1345 |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
They had the same problem a couple days ago. I kept getting timed out. It lasted for little over an hour around 10pm my time, but eventually came back. I wonder if there doing some sort of revisions.
|
04-27-2013, 02:25 AM | #1346 |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
I've recently run into the problem of a story being on two different sites (http://www.fanfiction.net/s/8843117/1/ , http://archiveofourown.org/works/612...apters/1104270). It has the same title and same author, although one site has an extra chapter. When I tried to get the story from AO3 it tried to overwrite the FFN version which had more chapters. I don't usually notice when a story is updated. I only noticed because I knew that I had not gotten this story from AO3. If I had continued to get the story from AO3, I would have lost a chapter.
I realize this not a problem with the plugin itself, but I am unsure how I should handle it. Has anyone else had this problem? How did you deal with stories on mulitple sites? Instead of immediately overwriting, would it be possible to compare the two epubs (for example look at word number) so that you could choose which one to keep? Or is there a way to create a new epub for each site so that I could compare the two manually? |
04-27-2013, 01:18 PM | #1347 | ||
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Quote:
And, yes, it took me this long to realize you had made the changes. I was too busy using your work around of brackets. Thanks. |
||
04-27-2013, 04:34 PM | #1348 | |
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
If you do an 'epub update' or 'update always', FFDL will refuse to update an existing epub that has more chapters than the site does. So either you're trying to do an overwrite--which *can* overwrite an existing with more chapters (sometimes authors consolidate chapters), or you saw the Yes/No/ViewLog box and didn't realize that it said it *wouldn't* update it. I suppose I could add an optional feature to only update books with matching URL, not title/author. But that could easily lead to duplicate books. Or a different (optional?) feature, acting a bit like the reject list feature, to ask the user to confirm when an update/overwrite would change the story URL. Do either of those ideas appeal to anyone? |
|
04-27-2013, 05:08 PM | #1349 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
I like the first option of updating based on story URL. Although it would create a duplicate, I could compare the duplicate stories and decide which one to keep. The second option of asking permission to overwrite the story URL could also work. It would let me know when I had a story on two sites. Then I could use the same method I am using now: 1. use different libraries to get the stories from different websites 2. merge libraries and allow for duplicates 3. examine duplicates to determine which one to keep 4. add rejected story URL to rejected list with 'duplicate story' tag Either way, I'm still looking at duplicate stories to determine which one to keep. The first one would save me a step. It also might prevent duplicate stories when an author changes his or her name, as I have seen a few different authors on FFN change their name mid way through a story. The story would be recognized by the url and wouldn't be duplicated because the author's name no longer matched. |
|
04-27-2013, 07:29 PM | #1350 | |
Plugin Developer
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Personally, if there's versions on two sites, I look at them on the sites and then choose rather than downloading both to decide.
Quote:
Attached is a version that gives you the chance to decline updates that would change the URL of a story. Give it a try and let me know what you think--everybody, not just Jade Aislin. UPDATE May 7, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 05-07-2013 at 01:57 PM. Reason: Remove obsolete beta versions |
|
|
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 |