mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +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/",
|
||||
"typeSource": "single",
|
||||
"itemType": 1,
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"dateFormat": "",
|
||||
"dateFormatLocale": "",
|
||||
"pkgPath": "anime/src/en/aniplay.js"
|
||||
@@ -453,10 +453,13 @@ class DefaultExtension extends MProvider {
|
||||
|
||||
var subtitles = []
|
||||
result.subtitles.forEach(sub => {
|
||||
var label = sub.label
|
||||
if (label.indexOf("thumbnail") < 0) { // thumbnails shouldnt be included
|
||||
subtitles.push({
|
||||
"label": sub.lang,
|
||||
"label": label,
|
||||
"file": sub.url,
|
||||
});
|
||||
}
|
||||
})
|
||||
streams[0].subtitles = subtitles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user