Preserve original titles for Reader Post blocks from fiction.live (#1269)

* Preserve original titles for Reader Post blocks from fiction.live

* Update adapter_fictionlive.py

Changed for py2 backward compatibility

* Update adapter_fictionlive.py

Switched to concatenation rather than .format

* Update adapter_fictionlive.py

Missing space -_-
This commit is contained in:
MacaroonRemarkable 2025-10-29 11:47:26 -07:00 committed by GitHub
parent 4a9da1c02e
commit ff402c16ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -502,8 +502,10 @@ class FictionLiveAdapter(BaseSiteAdapter):
# now matches the site and does *not* include dicerolls as posts! # now matches the site and does *not* include dicerolls as posts!
num_votes = str(len(posts)) + " posts" if len(posts) != 0 else "be the first to post." num_votes = str(len(posts)) + " posts" if len(posts) != 0 else "be the first to post."
posts_title = chunk['b'] if 'b' in chunk else "Reader Posts"
output = "" output = ""
output += u"<h4><span>Reader Posts — <small> Posting " + closed output += u"<h4><span>" + posts_title + " — <small> Posting " + closed
output += u"" + num_votes + "</small></span></h4>\n" output += u"" + num_votes + "</small></span></h4>\n"
## so. a voter can roll with their post. these rolls are in a seperate dict, but have the **same uid**. ## so. a voter can roll with their post. these rolls are in a seperate dict, but have the **same uid**.