netflixmirror: enable media name by default display

This commit is contained in:
Moustapha Kodjo Amadou
2025-01-20 13:16:02 +01:00
parent 6e9ca62d82
commit 131600dbef

View File

@@ -6,11 +6,8 @@ const mangayomiSources = [{
"apiUrl": "https://pcmirror.cc", "apiUrl": "https://pcmirror.cc",
"iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/all.netflixmirror.png", "iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/all.netflixmirror.png",
"typeSource": "single", "typeSource": "single",
"isManga": false,
"itemType": 1, "itemType": 1,
"version": "0.1.1", "version": "0.1.2",
"dateFormat": "",
"dateFormatLocale": "",
"pkgPath": "anime/src/all/netflixmirror.js" "pkgPath": "anime/src/all/netflixmirror.js"
}]; }];
@@ -77,7 +74,7 @@ class DefaultExtension extends MProvider {
return await this.getPages(await this.request("/home"), ".inner-mob-tray-container") return await this.getPages(await this.request("/home"), ".inner-mob-tray-container")
} }
async getPages(body, selector) { async getPages(body, selector) {
var name_pref = this.getPreference("netmirror_pref_display_name"); var name_pref = this.getPreference("netmirror_pref_display_name_1");
const elements = new Document(body).select(selector); const elements = new Document(body).select(selector);
const cookie = await this.getCookie(); const cookie = await this.getCookie();
const list = []; const list = [];
@@ -275,11 +272,11 @@ class DefaultExtension extends MProvider {
entryValues: ["1080", "720", "480"] entryValues: ["1080", "720", "480"]
} }
}, { }, {
"key": "netmirror_pref_display_name", "key": "netmirror_pref_display_name_1",
"switchPreferenceCompat": { "switchPreferenceCompat": {
"title": "Display media name on home page", "title": "Display media name on home page",
"summary": "Homepage loads faster by not calling details API", "summary": "Homepage loads faster by not calling details API",
"value": false "value": true
} }
}, { }, {
key: 'netmirror_pref_service', key: 'netmirror_pref_service',