diff --git a/src/frontend/src/routes/+page.svelte b/src/frontend/src/routes/+page.svelte index 7a7693e..cff11b5 100644 --- a/src/frontend/src/routes/+page.svelte +++ b/src/frontend/src/routes/+page.svelte @@ -21,7 +21,7 @@ is_part_id = false; if (raw_story_id.includes("wattpad.com")) { // Originally, I was going to call the Wattpad API (wattpad.com/api/v3/stories/${story_id}), but Wattpad kept blocking those requests. I suspect it has something to do with the Origin header, I wasn't able to remove it. - // In the future, if this is considered, it would be cool if we could derive the Story ID from a pasted Part URL. There isn't a direct API for this. + // In the future, if this is considered, it would be cool if we could derive the Story ID from a pasted Part URL. Refer to @AaronBenDaniel's https://github.com/AaronBenDaniel/WattpadDownloader/blob/49b29b245188149f2d24c0b1c59e4c7f90f289a9/src/api/src/create_book.py#L156 (https://www.wattpad.com/api/v3/story_parts/{part_id}?fields=url). if (raw_story_id.includes("/story/")) { // https://wattpad.com/story/237369078-wattpad-books-presents