From e736acc936680313f1e568c2de2e725a5185fb18 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Wed, 1 Feb 2023 21:49:23 -0500 Subject: [PATCH] assorted fixes --- deno.lock | 7 +++++++ routes/feed.tsx | 2 +- routes/story.tsx | 2 +- wattpad.ts | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/deno.lock b/deno.lock index e175560..5ba30e1 100644 --- a/deno.lock +++ b/deno.lock @@ -177,6 +177,13 @@ "https://deno.land/x/wattpad@v0.1.0/src/classes/Wattpad.ts": "f9b1762e1244207835e6258271690d2c8e0dcf9d69c8513de3f313c97174f249", "https://deno.land/x/wattpad@v0.1.0/src/types.d.ts": "fe933b610694544ffd9ade8a94aa555c82abaedf293faf5aa61f6ab6d1ee44f8", "https://deno.land/x/wattpad@v0.1.0/src/utils/http.ts": "a072d8964b1fbd67d18f8a0233031d04fa4d9fc3d9b5961012f4e949b0cf8fbe", + "https://deno.land/x/wattpad@v0.1.1/mod.ts": "9a4ef5a02a1b85f0ca05a38ff8490fabdb0e13afe9a1f0b9a84a41537155ae6c", + "https://deno.land/x/wattpad@v0.1.1/src/classes/Chapter.ts": "00b6097f5ffce2b44a24432fc62be324bf11a80327e2975eb115bc2e7410369c", + "https://deno.land/x/wattpad@v0.1.1/src/classes/Search.ts": "fc290bd9819ce65e3efe6473c4ed3594b07d16569e4a566f06cb04cad274214d", + "https://deno.land/x/wattpad@v0.1.1/src/classes/Story.ts": "bc7b50c9c166e666d9fefbac9b4be74bbe337d85c53f29f30f18416bd379b5a3", + "https://deno.land/x/wattpad@v0.1.1/src/classes/Wattpad.ts": "f9b1762e1244207835e6258271690d2c8e0dcf9d69c8513de3f313c97174f249", + "https://deno.land/x/wattpad@v0.1.1/src/types.d.ts": "3f3a27dd5efbecbf1be6f2dd9c89146ce11c8ccb1b229d18f16d32635338b844", + "https://deno.land/x/wattpad@v0.1.1/src/utils/http.ts": "a072d8964b1fbd67d18f8a0233031d04fa4d9fc3d9b5961012f4e949b0cf8fbe", "https://raw.githubusercontent.com/kt3k/callsites/v1.0.0/mod.ts": "a5fdfa7916d03459fd4830ca526d493d5f4ce0ea91619905d524c9a3a5c3cd15", "https://raw.githubusercontent.com/nomyTx/gas/bef3e8b8b51a9929b915b3e13df07290a37832ba/jsx.ts": "adf05a2478b48bc0c1e4e18db87c7c03d0894e3751be99571c3e63375471d5d3" }, diff --git a/routes/feed.tsx b/routes/feed.tsx index 3f86197..41d6d37 100644 --- a/routes/feed.tsx +++ b/routes/feed.tsx @@ -63,7 +63,7 @@ export default async (params: URLSearchParams) => { id: ch.id, link: `https://voltpad.ruthenic.com/story?id=${story.id}&chapter=${idx}`, content: ch.html, - date: new Date(ch.partJSON.modifyDate), + date: new Date(ch.partJSON.createDate), image: ch.partJSON.photoUrl ?? undefined }); }); diff --git a/routes/story.tsx b/routes/story.tsx index ab8e4f6..bca73be 100644 --- a/routes/story.tsx +++ b/routes/story.tsx @@ -97,7 +97,7 @@ export default async (params: URLSearchParams) => {

Original URL:{" "} - {story.storyJSON.url} + {decodeURI(story.storyJSON.url)}
Author:{" "} diff --git a/wattpad.ts b/wattpad.ts index 05f284a..2223903 100644 --- a/wattpad.ts +++ b/wattpad.ts @@ -1,5 +1,5 @@ -export * from "https://deno.land/x/wattpad@v0.1.0/mod.ts"; -import Wattpad, { Story } from "https://deno.land/x/wattpad@v0.1.0/mod.ts"; +export * from "https://deno.land/x/wattpad@v0.2.0/mod.ts"; +import Wattpad, { Story } from "https://deno.land/x/wattpad@v0.2.0/mod.ts"; import config from "./config.ts"; const watt = new Wattpad();