Skip to content

Commit

Permalink
update plugins host (#910)
Browse files Browse the repository at this point in the history
* update plugins host

* fix: missing branch
  • Loading branch information
nyagami authored Jan 25, 2024
1 parent 8f6c390 commit 09d51b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/plugins/pluginManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { load } from 'cheerio';
import dayjs from 'dayjs';
import { NovelStatus, Plugin, PluginItem } from './types';
import { FilterTypes } from './types/filterTypes';
import { parseMadaraDate } from './helpers/parseDate';
import { isUrlAbsolute } from './helpers/isAbsoluteUrl';
import { fetchApi, fetchFile, fetchText } from './helpers/fetch';
import { defaultCover } from './helpers/constants';
Expand All @@ -20,7 +19,6 @@ const packages: Record<string, any> = {
'urlencode': { encode, decode },
'@libs/novelStatus': { NovelStatus },
'@libs/fetch': { fetchApi, fetchFile, fetchText },
'@libs/parseMadaraDate': { parseMadaraDate },
'@libs/isAbsoluteUrl': { isUrlAbsolute },
'@libs/filterInputs': { FilterTypes },
'@libs/defaultCover': { defaultCover },
Expand Down Expand Up @@ -117,10 +115,9 @@ const fetchPlugins = async () => {
// plugins host
const githubUsername = 'LNReader';
const githubRepository = 'lnreader-sources';
const githubBranch = 'master';

const availablePlugins: Record<Language, Array<PluginItem>> = await fetch(
`https://raw.githubusercontent.com/${githubUsername}/${githubRepository}/${githubBranch}/.dist/${githubUsername}/plugins.min.json`,
`https://raw.githubusercontent.com/${githubUsername}/${githubRepository}/dist/.dist/plugins.min.json`,
)
.then(res => res.json())
.catch(() => {
Expand Down

0 comments on commit 09d51b2

Please sign in to comment.