Removed superfluous Gamma scrapers.

This commit is contained in:
DebaucheryLibrarian
2021-02-02 22:36:47 +01:00
parent 251c3964bd
commit 4db9a34a34
10 changed files with 26 additions and 79 deletions

View File

@@ -178,10 +178,6 @@ async function fetchLatestApi(channel, page = 1) {
}
async function fetchLatest(channel, page = 1, options, preData) {
if (channel.parameters?.useApi) {
return fetchLatestApi(channel, page, options, preData);
}
if (channel.parameters?.useGamma) {
return fetchApiLatest(channel, page, preData, options, false);
}
@@ -211,10 +207,6 @@ async function fetchSceneApi(url, channel, baseRelease) {
}
async function fetchScene(url, channel) {
if (channel.parameters?.useApi) {
return fetchSceneApi(url, channel);
}
const res = await qu.get(url);
if (res.ok) {
@@ -227,4 +219,8 @@ async function fetchScene(url, channel) {
module.exports = {
fetchLatest,
fetchScene,
api: {
fetchLatest: fetchLatestApi,
fetchScene: fetchSceneApi,
},
};