View Single Post
Old 04-23-2019, 11:45 PM   #3377
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,033
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-04-23
- Fix for BS halping with string conversions on PI update from Saved Meta Column.
- More improvements for adapter_asianfanficscom, including auto_sub feature, thanks oh45454545

Quote:
Originally Posted by jesscat View Post
When downloading/updating metadata from a website, only "&" works. The "&" doesn't.
...
But if I later update metadata from the saved metadata column, the "&" doesn't work - so the "char1 & char2" pairings are no longer excluded and will re-appear in the pairing column. In this case, though, "&" does work:
...
Am I doing something wrong? Or is this the expected behavior?
I think this is another weird BeautifulSoup 3 vs 4 difference that I didn't notice because it works fine 99% of the time.

FFF uses & internally for historical reasons, and that should be what works in general.

You should be able to use:
Code:
exclude_metadata_post: 
 onlyromships=~&
No need to match the spaces around &, I don't think. But if you do want to, you probably want the trailing * so it's "0 or more spaces" on both sides of the & like so:
Code:
exclude_metadata_post: 
 onlyromships=~[ ]*&[ ]*
You seem to be one of those people who (through no fault of their own) are just naturally gifted at finding bugs in my code.

I used to work with a guy like that--whatever I made would work fine for everybody else. But he just thought and did things differently, in ways I couldn't even think of, then...
JimmXinu is offline   Reply With Quote