extension(aniplay): dont include thumbnails in subs

This commit is contained in:
Swakshan
2025-03-16 12:06:40 +05:30
parent a5b84aeb6e
commit 2a1ff024f4

View File

@@ -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"
@@ -453,10 +453,13 @@ class DefaultExtension extends MProvider {
var subtitles = [] var subtitles = []
result.subtitles.forEach(sub => { result.subtitles.forEach(sub => {
var label = sub.label
if (label.indexOf("thumbnail") < 0) { // thumbnails shouldnt be included
subtitles.push({ subtitles.push({
"label": sub.lang, "label": label,
"file": sub.url, "file": sub.url,
}); });
}
}) })
streams[0].subtitles = subtitles streams[0].subtitles = subtitles