Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions plugins/multisrc/lightnovelwp/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,12 @@
},
{
"id": "TCSega",
"sourceSite": "https://teamchmantranslations.com",
"sourceSite": "https://teamchmantranslations.com/",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Older chapter images may break

The new trailing slash in TCSega’s sourceSite can leave two slashes when it joins an older chapter path. safeFecth removes the extra slash when fetching the chapter, but pageUrl keeps it when building relative image links. If the image host treats those paths differently, readers see broken images. Build pageUrl from the same cleaned URL used for the fetch.

"sourceName": "TC & Sega",
"options": {
"lang": "Spanish",
"reverseChapters": true
"reverseChapters": true,
"versionIncrements": 1
}
},
{
Expand Down Expand Up @@ -326,7 +327,7 @@
"lang": "English",
"reverseChapters": true,
"hasLocked": true
}
}
},
{
"id": "blumeverse",
Expand All @@ -336,7 +337,7 @@
"lang": "English",
"reverseChapters": true,
"hasLocked": true
}
}
},
{
"id": "dobynovels",
Expand Down
2 changes: 1 addition & 1 deletion plugins/multisrc/lightnovelwp/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class LightNovelWPPlugin implements Plugin.PluginBase {
// select the element itself rather than cutting the document between
// landmarks: a <script> inside the block then cannot end it early either.
const $ = load(data);
const content = $('div.epcontent').first();
const content = $('.epcontent').first();

// No epcontent block means this was not a chapter page (a login wall or
// an error page served with 200). Returning the whole document here would
Expand Down
Loading