You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like if the author doesn't explicitly rename/bookmark the initial chapter, it doesn't show up in the bookmark list (bm node) and thus is undetected.
I thought a missing isFirst kvp in the bookmarks array meant this was the case, but looking at https://fiction.live/api/node/XgpsT3k8s5qXEkJAe I don't see that value set and the Home page is empty.
For anyone else encountering this, I hacked in a short term fix by converting line 37 of fictionlive.py to chapters = ({'ct': 0},) + ({'ct': 0, "title": response['t']},) + tuple(c for c in response['bm'] if not c['title'].startswith('#special')) + ({'ct': 9999999999999999},)
The text was updated successfully, but these errors were encountered:
Looks like if the author doesn't explicitly rename/bookmark the initial chapter, it doesn't show up in the bookmark list (
bm
node) and thus is undetected.One chapter example (with only special bookmarks):
https://fiction.live/stories/Primal-Ties/2mbdgmNkNY2gAE9xo
API is https://fiction.live/api/node/2mbdgmNkNY2gAE9xo
Finished story example (with content on Home):
https://fiction.live/stories/Six-Sinful-Succubi-A-Corruption-Quest-/5xa4YDkog9jBxkFFw/home
API is https://fiction.live/api/node/5xa4YDkog9jBxkFFw
Example run log of the second one:
In this case, this is a working chapter url the story content on the home page: https://fiction.live/api/anonkun/chapters/5xa4YDkog9jBxkFFw/0/1518999824068
Although https://fiction.live/api/anonkun/chapters/5xa4YDkog9jBxkFFw/1518907500406/1518999824068 is probably "more correct", I don't see a way to extract that timestamp without actually looking at the first chapter.
For that particular story, it looks like getting https://fiction.live/api/anonkun/chapters/5xa4YDkog9jBxkFFw/1518906796120/1518999824068 where the first value is the
ct
kvp from the initial api/node url seems to work. I don't know if that'll hold up (like if someone filled a special bookmark in first maybe it would break?)I thought a missing
isFirst
kvp in the bookmarks array meant this was the case, but looking at https://fiction.live/api/node/XgpsT3k8s5qXEkJAe I don't see that value set and the Home page is empty.For anyone else encountering this, I hacked in a short term fix by converting line 37 of fictionlive.py to
chapters = ({'ct': 0},) + ({'ct': 0, "title": response['t']},) + tuple(c for c in response['bm'] if not c['title'].startswith('#special')) + ({'ct': 9999999999999999},)
The text was updated successfully, but these errors were encountered: