MammaMia version 2.0.0

This commit is contained in:
UrloMythus
2025-09-15 17:31:03 +02:00 Unverified
parent 10f381b6d6
commit 8c65cde092
48 changed files with 1514 additions and 1242 deletions
+24 -27
View File
@@ -85,16 +85,6 @@ HTML = """
flex-grow: 1; /* Let the label take as much space as possible */
font-size: 2.2vh;
}
.fast-search {
display: flex;
align-items: center; /* Align the Fast Search checkbox vertically centered */
margin-left: 10px; /* Space between provider and Fast Search */
}
.fast-search input[type="checkbox"] {
margin-right: 0.5vh; /* Space between the checkbox and label */
width: 3vh;
height: 3vh;
}
.provider-group input[type="checkbox"] {
margin-right: 1.5vh;
width: 4vh;
@@ -184,21 +174,29 @@ HTML = """
<div id="additionalText">
<h2>This addon provides Movie, Series, Anime, and Live TV HTTPS Streams.<br> https://github.com/UrloMythus/MammaMia/</h2>
</div>
<p class="description">Configure your providers: Note that if you enable Fast Search results will be less accurate but faster</p>
<p class="description">🕵️‍♂️ = Mediaflowproxy might be needed</p>
<h3 class="gives">Select Providers:</h3>
<form class="pure-form" id="provider-form">
<div class="provider-group">
<label for="streamingwatch" class="provider-label">
<input type="checkbox" id="streamingwatch"> StreamingWatch
</label>
</div>
<div class="provider-group">
<label for="guardoserie" class="provider-label">
<input type="checkbox" id="guardoserie"> Guardoserie
</label>
</div>
<div class="provider-group">
<label for="guardaflix" class="provider-label">
<input type="checkbox" id="guardaflix"> Guardaflix
</label>
</div>
<div class="provider-group">
<label for="animeworld" class="provider-label">
<input type="checkbox" id="animeworld"> Animeworld
</label>
</div>
<p>To use the following provider you need to have a local instance/ set the proxy enviroment variable... Leave it as it is if you do not know what this is about
</p>
<div class="provider-group">
<label for="guardaserie" class="provider-label">
<input type="checkbox" id="guardaserie"> Guardaserie
@@ -209,25 +207,22 @@ HTML = """
<input type="checkbox" id="guardahd"> GuardaHD
</label>
</div>
<div>
<p>Mediaflowproxy
</p>
<div>
</div>
<div class="provider-group">
<label for="cb01" class="provider-label">
<input type="checkbox" id="cb01"> CB01
<input type="checkbox" id="cb01"> CB01 🕵️‍♂️
</label>
</div>
<p>Local/MFP with good IP</p>
<div class="provider-group">
<label for="streamingcommunity" class="provider-label">
<input type="checkbox" id="streamingcommunity"> StreamingCommunity
<input type="checkbox" id="streamingcommunity"> StreamingCommunity 🕵️‍♂️
</label>
</div>
<div class="provider-group">
<label for="eurostreaming" class="provider-label">
<input type="checkbox" id="eurostreaming"> Eurostreaming 🕵️‍♂️
</label>
<span class="fast-search">
<label for="fast_search_sc">
<input type="checkbox" id="fast_search_sc"> Fast Search
</label>
</span>
</div>
<div class="provider-group">
<label for="livetv" class="provider-label">
@@ -265,13 +260,15 @@ HTML = """
let manifest = "|";
const providers = {
"streamingcommunity": "SC",
"fast_search_sc": "SC_FS",
"streamingwatch": "SW",
"animeworld": "AW",
"livetv": "LIVETV",
"cb01": "CB",
"guardaserie": "GS",
"guardahd": "GHD",
"guardoserie": "GO",
"guardaflix": "GF",
"eurostreaming": "ES",
"mediaflowproxy": "MFP"
};
@@ -292,9 +289,9 @@ HTML = """
}
}
}
const encodedProviders = btoa(manifest);
const instanceUrl = "{instance_url}"; // Replace with your instance URL
const manifestUrl = instanceUrl + "/" + manifest + "/" + "manifest.json";
const manifestUrl = instanceUrl + "/" + encodedProviders + "/" + "manifest.json";
return manifestUrl;
}