Update src/libpoketube/init/pages-404-and-main.js
This commit is contained in:
parent
82d5ba1c3e
commit
4d0e0b102e
@ -173,7 +173,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||||||
const query = req.query.mobilesearch;
|
const query = req.query.mobilesearch;
|
||||||
const continuation = req.query.continuation || "";
|
const continuation = req.query.continuation || "";
|
||||||
const searchUrl = `${config.invapi}/search?q=${encodeURIComponent(query)}&page=${encodeURIComponent(continuation)}`
|
const searchUrl = `${config.invapi}/search?q=${encodeURIComponent(query)}&page=${encodeURIComponent(continuation)}`
|
||||||
const xmlData = await fetch(searchUrl, {
|
j = await fetch(searchUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': config.useragent,
|
'User-Agent': config.useragent,
|
||||||
},
|
},
|
||||||
@ -190,7 +190,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||||||
inv: t,
|
inv: t,
|
||||||
turntomins,
|
turntomins,
|
||||||
continuation: req.query.continuation,
|
continuation: req.query.continuation,
|
||||||
j:xmlData,
|
j,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user