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": {
|
"options": {
|
||||||
"useNewChapterEndpoint": true
|
"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 'المؤلف (ين)':
|
case 'المؤلف (ين)':
|
||||||
novel.author = detail.text().trim();
|
novel.author = detail.text().trim();
|
||||||
break;
|
break;
|
||||||
|
case 'Translator(s)':
|
||||||
|
case 'Translator':
|
||||||
|
case 'Translators':
|
||||||
|
if (!novel.author) novel.author = detail.text().trim();
|
||||||
|
break;
|
||||||
case 'Status':
|
case 'Status':
|
||||||
case 'Novel':
|
case 'Novel':
|
||||||
case 'Estado':
|
case 'Estado':
|
||||||
@@ -286,6 +291,13 @@ export class MadaraPlugin implements Plugin.PluginBase {
|
|||||||
.get()
|
.get()
|
||||||
.join('\n\n')
|
.join('\n\n')
|
||||||
.trim() ||
|
.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')
|
loadedCheerio('.manga-summary p')
|
||||||
.map((i, el) => loadedCheerio(el).text())
|
.map((i, el) => loadedCheerio(el).text())
|
||||||
.get()
|
.get()
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user