Files
RSSHub/lib/v2/javlibrary/user.js
Ethan Shen dbb1c0b02d fix(route): JAVLibrary (#8956)
* fix(route): JAVLibrary

* fix: sort in alphabetical order
2022-02-07 23:45:58 -10:00

11 lines
390 B
JavaScript

const { defaultLanguage, rootUrl, ProcessItems } = require('./utils');
module.exports = async (ctx) => {
const id = ctx.params.id;
const type = ctx.params.type;
const language = ctx.params.language ?? defaultLanguage;
const currentUrl = `${rootUrl}/${language}/${type}.php?list&u=${id}`;
ctx.state.data = await ProcessItems(language, currentUrl, ctx.cache.tryGet);
};