View Single Post
Old 10-02-2017, 02:11 PM   #2482
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: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted

2017-10-02
- Remove empty chars from ships when doing sort_ships / ships_CHARS

Quote:
Originally Posted by kstar View Post
As suggestI tried ships_CHARS method ... it almost works BUT for a preceding slash.

input: [Iron Man/Tony S., Pepper P.]
output: /Pepper Potts/Tony Stark
...
Internally, [Iron Man/Tony S., Pepper P.] is changed into u'Iron Man/Tony S./Pepper P.' and then into a list of u'Iron Man', u'Tony S.', u'Pepper P.', then ships_CHARS changes it into u'', u'Tony S.', u'Pepper P.' The new test version now discards empty strings whiles sorting ships.

FYI, in future please also include a story URL. I tested using this story which is just the first I could find with Pepper/Tony. (Ironman comic fics on ffnet use [A. E. Stark/Tony, V. Potts/Pepper], BTW.)
JimmXinu is offline   Reply With Quote