ZoroTheme: add 'Raw' option for type selection

This commit is contained in:
Moustapha Kodjo Amadou
2025-01-20 12:51:31 +01:00
parent 7694b76ee8
commit 9ba2f54608
2 changed files with 7 additions and 5 deletions

View File

@@ -15,6 +15,6 @@ List<Source> _zorothemeSourcesList = [
] ]
.map((e) => e .map((e) => e
..sourceCodeUrl = _zorothemeSourceCodeUrl ..sourceCodeUrl = _zorothemeSourceCodeUrl
..appMinVerReq = "0.4.0" ..appMinVerReq = "0.4.1"
..version = _zorothemeVersion) ..version = _zorothemeVersion)
.toList(); .toList();

View File

@@ -590,12 +590,12 @@ class ZoroTheme extends MProvider {
entryValues: ["HD-1", "HD-2", "StreamTape"], entryValues: ["HD-1", "HD-2", "StreamTape"],
values: ["HD-1", "HD-2", "StreamTape"]), values: ["HD-1", "HD-2", "StreamTape"]),
MultiSelectListPreference( MultiSelectListPreference(
key: "type_selection", key: "type_selection_new",
title: "Enable/Disable Types", title: "Enable/Disable Types",
summary: "", summary: "",
entries: ["Sub", "Dub"], entries: ["Sub", "Dub", "Raw"],
entryValues: ["sub", "dub"], entryValues: ["sub", "dub"],
values: ["sub", "dub"]), values: ["sub", "dub", "raw"]),
]; ];
} }
@@ -636,7 +636,7 @@ class ZoroTheme extends MProvider {
} }
List<String> preferenceTypeSelection(int sourceId) { List<String> preferenceTypeSelection(int sourceId) {
return getPreferenceValue(sourceId, "type_selection"); return getPreferenceValue(sourceId, "type_selection_new");
} }
String ll(String url) { String ll(String url) {
@@ -651,6 +651,8 @@ ZoroTheme main(MSource source) {
return ZoroTheme(source: source); return ZoroTheme(source: source);
} }
// credits: https://github.com/Kohi-den/extensions-source/tree/main/lib/megacloud-extractor/src/main
const decodePng = """"use strict"; const decodePng = """"use strict";
// https://megacloud.tv/images/image.png?v=0.1.0 // https://megacloud.tv/images/image.png?v=0.1.0
window.decoded_png = new Uint8ClampedArray([ window.decoded_png = new Uint8ClampedArray([