mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-15 11:21:11 +00:00
extension(aniplay): Fixed Yuki provider
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.0.2",
|
"version": "1.0.3",
|
||||||
"dateFormat": "",
|
"dateFormat": "",
|
||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "anime/src/en/aniplay.js"
|
"pkgPath": "anime/src/en/aniplay.js"
|
||||||
@@ -427,8 +427,13 @@ class DefaultExtension extends MProvider {
|
|||||||
var m3u8Url = result.sources[0].url
|
var m3u8Url = result.sources[0].url
|
||||||
var streams = await this.extractStreams(m3u8Url, "yuki");
|
var streams = await this.extractStreams(m3u8Url, "yuki");
|
||||||
|
|
||||||
|
var subtitles = []
|
||||||
var subtitles = result.tracks
|
result.subtitles.forEach(sub => {
|
||||||
|
subtitles.push({
|
||||||
|
"label": sub.lang,
|
||||||
|
"file": sub.url,
|
||||||
|
});
|
||||||
|
})
|
||||||
streams[0].subtitles = subtitles
|
streams[0].subtitles = subtitles
|
||||||
|
|
||||||
return streams
|
return streams
|
||||||
@@ -487,8 +492,8 @@ class DefaultExtension extends MProvider {
|
|||||||
"title": "Preferred provider",
|
"title": "Preferred provider",
|
||||||
"summary": "",
|
"summary": "",
|
||||||
"valueIndex": 0,
|
"valueIndex": 0,
|
||||||
"entries": ["All", "Anya", "Yuki"],
|
"entries": ["Any", "Anya", "Yuki"],
|
||||||
"entryValues": ["all", "anya", "yuki"],
|
"entryValues": ["any", "anya", "yuki"],
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"key": "aniplay_pref_mark_filler",
|
"key": "aniplay_pref_mark_filler",
|
||||||
|
|||||||
Reference in New Issue
Block a user