-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fiction.live: KeyError: 'contentRating' #547
Comments
Ok, digging into it. I know the site used to use a different system for ratings ('tAge'), but even very old stories seemed to have the new contentRating. Seems that this story doesn't have either? I really did not think it was optional. Looking at the comments in the HTML, I think the site-generator defaults to Teen when there's no contentRating? So we probably should too. Patch soon. At this point, I might just go ahead and add code to handle the inevitable story which doesn't have an author, or a publication date. It's actually too much to think that there might be a story without a storyID, right??? |
I think that should fix it. Can confirm that I have those stories working locally. |
Sorry, seems original reporter pointed out also one more issue:
|
Yep, that's a typo, that should be a simple rather than a double dict. Happened because I made a quick change and didn't test it before pushing. Thanks @dakswiggin for finding the issue. |
This is still happening?
|
Can't reproduce, sorry. For me, that story downloads without error. Are you sure that error is from the most recent test version? Line 109 is exactly where the issue would have been before the patch. |
@JimmXinu most recent test version published on mobileread.com doesn't include changes in adapter related to contentRating (compared git source with https://www.mobileread.com/forums/attachment.php?attachmentid=181987&d=1600349943) |
@dakswiggin is correct -- this was my mistake in uploading the test version. Sorry about that. |
@HazelSh,
Reported here, there's another metadata issue with fiction.live support on some stories. Do you have time to look into it? Thanks.
Examples:
https://fiction.live/stories/Golden-Empire-Chapter-1-Authority/c3ea820a-a8e6-4917-8067-f04d7eeca1ab
https://fiction.live/stories/Golden-Empire-Chapter-2-Purpose/a9b355a5-802d-4ac4-9afc-a89666375ac6
https://fiction.live/stories/Golden-Empire-Chapter-3-Ruin/5426e7f3-64d7-4eb5-8736-2299c7feddf8
The text was updated successfully, but these errors were encountered: