Skip to content

mcstories: add a basic adapter for mcstories.com#4

Open
mscout1 wants to merge 1 commit intoFanFicDev:masterfrom
mscout1:master
Open

mcstories: add a basic adapter for mcstories.com#4
mscout1 wants to merge 1 commit intoFanFicDev:masterfrom
mscout1:master

Conversation

@mscout1
Copy link
Copy Markdown

@mscout1 mscout1 commented Feb 1, 2025

No description provided.

if m := story_index_path_re.fullmatch(path):
lid = m.group("lid")
elif m := story_chapter_path_re.fullmatch(path):
lid = m.group("clid")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clid group is only the same as lid for stories with a single chapter. So far every multi-chapter story I've checked switches to /{lid}/{lid}{cid}.html format.

I haven't caught a chapter that went from one to multiple chapters, but it also seems like /{lid}/{lid}.html gets a 404 at that point -- which maybe isn't a problem but something to be aware of.

@iridescent-beacon
Copy link
Copy Markdown
Member

Overall this looks great, I appreciate the contribution!

I'll need to do some small rebasing due to unpushed local changes to get it merged properly, but I've manually added it to the live site for now -- please feel free to test it out and let me know if you find any unexpected issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants