From c3a6eb372f7fd3dbe3faefcee23586c66106e200 Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Sat, 9 Apr 2022 19:51:10 +0530 Subject: [PATCH] style: Run Prettier --- src/sources/ru/renovels.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/sources/ru/renovels.js b/src/sources/ru/renovels.js index 575b02a7..0dbf7bed 100644 --- a/src/sources/ru/renovels.js +++ b/src/sources/ru/renovels.js @@ -5,7 +5,8 @@ const baseUrl = 'https://renovels.org/'; const popularNovels = async page => { const totalPages = 20; - const url = 'https://api.renovels.org/api/titles/last-chapters/?&count=20&page=' + page; + const url = + 'https://api.renovels.org/api/titles/last-chapters/?&count=20&page=' + page; const result = await fetch(url); let body = await result.json(); @@ -36,7 +37,9 @@ const parseNovelAndChapters = async novelUrl => { novelUrl, }; - const chapterResult = await fetch(`https://api.renovels.org/api/titles/chapters/?branch_id=${body.content.id}&count=100&page=1`); + const chapterResult = await fetch( + `https://api.renovels.org/api/titles/chapters/?branch_id=${body.content.id}&count=100&page=1`, + ); let volumes = await chapterResult.json(); let chapters = []; @@ -44,7 +47,10 @@ const parseNovelAndChapters = async novelUrl => { const chapterName = `Том ${item.tome} Глава ${item.chapter} ${item.name}`?.trim(); const releaseDate = item.upload_date; - const chapterUrl = 'https://api.renovels.org/api/titles/chapters/' + item.branches[0].id + '/'; + const chapterUrl = + 'https://api.renovels.org/api/titles/chapters/' + + item.branches[0].id + + '/'; chapters.push({ chapterName, releaseDate, chapterUrl }); }); @@ -93,4 +99,4 @@ const RanobeLibScraper = { searchNovels, }; -export default RanobeLibScraper; \ No newline at end of file +export default RanobeLibScraper;