Fix invalid URL

pull/73/head
MillenniumEarl 2021-03-03 21:16:30 +01:00
parent bd23956dc4
commit 2be07a38cc
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
export const urls = { export const urls = {
F95_BASE_URL: "https://f95zone.to", F95_BASE_URL: "https://f95zone.to",
F95_SEARCH_URL: "https://f95zone.to/search", F95_SEARCH_URL: "https://f95zone.to/search/105286576/",
F95_LATEST_UPDATES: "https://f95zone.to/latest", F95_LATEST_UPDATES: "https://f95zone.to/latest",
F95_THREADS: "https://f95zone.to/threads/", F95_THREADS: "https://f95zone.to/threads/",
F95_LOGIN_URL: "https://f95zone.to/login/login", F95_LOGIN_URL: "https://f95zone.to/login/login",

View File

@ -20,9 +20,9 @@ import ThreadSearchQuery from "../classes/query/thread-search-query.js";
* Maximum number of items to get. Default: 30 * Maximum number of items to get. Default: 30
* @returns {Promise<String[]>} URLs of the handiworks * @returns {Promise<String[]>} URLs of the handiworks
*/ */
export default async function fetchThreadHandiworkURLs(query: ThreadSearchQuery, limit:number = 30): Promise<string[]> { export default async function fetchThreadHandiworkURLs(query: ThreadSearchQuery, limit: number = 30): Promise<string[]> {
// Get the query // Get the query
const url = query.createURL().toString(); const url = decodeURI(query.createURL().href);
// Fetch the results from F95 and return the handiwork urls // Fetch the results from F95 and return the handiwork urls
return await fetchResultURLs(url, limit); return await fetchResultURLs(url, limit);