feat(madara): add Tangerine Archive source (#2564)
Co-authored-by: Muse Spark <muse-spark@local>
This commit is contained in:
@@ -676,5 +676,14 @@
|
||||
"options": {
|
||||
"useNewChapterEndpoint": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tangerinearchive",
|
||||
"sourceSite": "https://tangerinearchive.com/",
|
||||
"sourceName": "Tangerine Archive",
|
||||
"options": {
|
||||
"lang": "English",
|
||||
"useNewChapterEndpoint": true
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -235,6 +235,11 @@ export class MadaraPlugin implements Plugin.PluginBase {
|
||||
case 'المؤلف (ين)':
|
||||
novel.author = detail.text().trim();
|
||||
break;
|
||||
case 'Translator(s)':
|
||||
case 'Translator':
|
||||
case 'Translators':
|
||||
if (!novel.author) novel.author = detail.text().trim();
|
||||
break;
|
||||
case 'Status':
|
||||
case 'Novel':
|
||||
case 'Estado':
|
||||
@@ -286,6 +291,13 @@ export class MadaraPlugin implements Plugin.PluginBase {
|
||||
.get()
|
||||
.join('\n\n')
|
||||
.trim() ||
|
||||
loadedCheerio('.post-content_item h5:contains("Summary")')
|
||||
.next()
|
||||
.find('p')
|
||||
.map((i, el) => loadedCheerio(el).text())
|
||||
.get()
|
||||
.join('\n\n')
|
||||
.trim() ||
|
||||
loadedCheerio('.manga-summary p')
|
||||
.map((i, el) => loadedCheerio(el).text())
|
||||
.get()
|
||||
|
||||
Reference in New Issue
Block a user