mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 02:34:38 -05:00
use config.invidapi instead
This commit is contained in:
parent
66308a4283
commit
86f8bc8fb2
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const headers = {};
|
const headers = {};
|
||||||
|
|
||||||
const xmlData = await fetch(
|
const xmlData = await fetch(
|
||||||
`https://invid-api.poketube.fun/api/v1/search?q=${encodeURIComponent(
|
`https://${config_invapi}/search?q=${encodeURIComponent(
|
||||||
query
|
query
|
||||||
)}&page=${encodeURIComponent(
|
)}&page=${encodeURIComponent(
|
||||||
continuation
|
continuation
|
||||||
|
@ -288,7 +288,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const apiUrl = "https://invid-api.poketube.fun/api/v1/channels/";
|
const apiUrl = config_invapi + "/channels/";
|
||||||
const channelUrl = `${apiUrl}${atob(
|
const channelUrl = `${apiUrl}${atob(
|
||||||
ChannelTabs.videos
|
ChannelTabs.videos
|
||||||
)}/${ID}/?sort_by=${sort_by}${continuation}`;
|
)}/${ID}/?sort_by=${sort_by}${continuation}`;
|
||||||
|
|
Loading…
Reference in a new issue