@@ -6,7 +6,7 @@ class SkyNovels implements Plugin.PluginBase {
|
|||||||
name = 'SkyNovels';
|
name = 'SkyNovels';
|
||||||
site = 'https://www.skynovels.net/';
|
site = 'https://www.skynovels.net/';
|
||||||
apiSite = 'https://api.skynovels.net/api/';
|
apiSite = 'https://api.skynovels.net/api/';
|
||||||
version = '1.0.0';
|
version = '1.0.1';
|
||||||
icon = 'src/es/skynovels/icon.png';
|
icon = 'src/es/skynovels/icon.png';
|
||||||
|
|
||||||
async popularNovels(): Promise<Plugin.NovelItem[]> {
|
async popularNovels(): Promise<Plugin.NovelItem[]> {
|
||||||
@@ -79,9 +79,9 @@ class SkyNovels implements Plugin.PluginBase {
|
|||||||
|
|
||||||
const item = body?.chapter?.[0];
|
const item = body?.chapter?.[0];
|
||||||
|
|
||||||
const chapterText = item?.chp_content || '404';
|
const chapterText = item?.chp_content || '';
|
||||||
|
|
||||||
return chapterText;
|
return chapterText.replace(/\n/g, '<br>');
|
||||||
}
|
}
|
||||||
|
|
||||||
async searchNovels(searchTerm: string): Promise<Plugin.NovelItem[]> {
|
async searchNovels(searchTerm: string): Promise<Plugin.NovelItem[]> {
|
||||||
|
|||||||
Reference in New Issue
Block a user