mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
extension(aniplay): dont include thumbnails in subs
This commit is contained in:
@@ -6,7 +6,7 @@ const mangayomiSources = [{
|
|||||||
"iconUrl": "https://www.google.com/s2/favicons?sz=128&domain=https://aniplaynow.live/",
|
"iconUrl": "https://www.google.com/s2/favicons?sz=128&domain=https://aniplaynow.live/",
|
||||||
"typeSource": "single",
|
"typeSource": "single",
|
||||||
"itemType": 1,
|
"itemType": 1,
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"dateFormat": "",
|
"dateFormat": "",
|
||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "anime/src/en/aniplay.js"
|
"pkgPath": "anime/src/en/aniplay.js"
|
||||||
@@ -420,7 +420,7 @@ class DefaultExtension extends MProvider {
|
|||||||
}];
|
}];
|
||||||
// Pahe only has auto
|
// Pahe only has auto
|
||||||
if (providerId === "pahe") {
|
if (providerId === "pahe") {
|
||||||
return streams;
|
return streams;
|
||||||
}
|
}
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
if (lines[i].startsWith('#EXT-X-STREAM-INF:')) {
|
if (lines[i].startsWith('#EXT-X-STREAM-INF:')) {
|
||||||
@@ -453,10 +453,13 @@ class DefaultExtension extends MProvider {
|
|||||||
|
|
||||||
var subtitles = []
|
var subtitles = []
|
||||||
result.subtitles.forEach(sub => {
|
result.subtitles.forEach(sub => {
|
||||||
subtitles.push({
|
var label = sub.label
|
||||||
"label": sub.lang,
|
if (label.indexOf("thumbnail") < 0) { // thumbnails shouldnt be included
|
||||||
"file": sub.url,
|
subtitles.push({
|
||||||
});
|
"label": label,
|
||||||
|
"file": sub.url,
|
||||||
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
streams[0].subtitles = subtitles
|
streams[0].subtitles = subtitles
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user