Spaces:
Paused
Paused
Update static/static.py
Browse files- static/static.py +49 -67
static/static.py
CHANGED
|
@@ -5,7 +5,6 @@ HTML = """
|
|
| 5 |
<html>
|
| 6 |
<head>
|
| 7 |
<meta charset="utf-8">
|
| 8 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 9 |
<title>Mamma Mia</title>
|
| 10 |
<link rel="icon" href="https://creazilla-store.fra1.digitaloceanspaces.com/emojis/49647/pizza-emoji-clipart-md.png" type="image/x-icon">
|
| 11 |
<style>
|
|
@@ -17,10 +16,10 @@ HTML = """
|
|
| 17 |
padding: 0;
|
| 18 |
width: 100%;
|
| 19 |
height: 100%;
|
| 20 |
-
font-family: 'Open Sans', Arial, sans-serif;
|
| 21 |
}
|
| 22 |
body {
|
| 23 |
font-size: 2.2vh;
|
|
|
|
| 24 |
color: white;
|
| 25 |
background: url('https://i.postimg.cc/m2ZqvpZj/italian-seamless-free-vector-pattern3.png') center center repeat;
|
| 26 |
background-size: cover;
|
|
@@ -32,17 +31,15 @@ HTML = """
|
|
| 32 |
background: rgba(0, 0, 0, 0.8);
|
| 33 |
padding: 2vh;
|
| 34 |
border-radius: 10px;
|
| 35 |
-
width:
|
| 36 |
-
max-width:
|
| 37 |
text-align: center;
|
| 38 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
| 39 |
-
overflow: hidden;
|
| 40 |
}
|
| 41 |
.logo {
|
| 42 |
height: auto;
|
| 43 |
-
width:
|
| 44 |
margin: auto;
|
| 45 |
-
margin-bottom:
|
| 46 |
}
|
| 47 |
.logo img {
|
| 48 |
width: 100%;
|
|
@@ -53,7 +50,7 @@ HTML = """
|
|
| 53 |
text-shadow: 0 0 1vh rgba(0, 0, 0, 0.15);
|
| 54 |
}
|
| 55 |
h1 {
|
| 56 |
-
font-size:
|
| 57 |
font-weight: 700;
|
| 58 |
}
|
| 59 |
h2 {
|
|
@@ -61,7 +58,7 @@ HTML = """
|
|
| 61 |
font-weight: normal;
|
| 62 |
font-style: italic;
|
| 63 |
opacity: 0.8;
|
| 64 |
-
margin-bottom:
|
| 65 |
word-wrap: break-word;
|
| 66 |
}
|
| 67 |
h3 {
|
|
@@ -76,18 +73,14 @@ HTML = """
|
|
| 76 |
background: rgba(255, 255, 255, 0.1);
|
| 77 |
padding: 1vh;
|
| 78 |
border-radius: 5px;
|
| 79 |
-
font-size: 2vh;
|
| 80 |
}
|
| 81 |
.provider-group label {
|
| 82 |
display: flex;
|
| 83 |
align-items: center;
|
| 84 |
-
font-size:
|
| 85 |
-
cursor: pointer;
|
| 86 |
}
|
| 87 |
.provider-group input[type="checkbox"] {
|
| 88 |
-
margin-right:
|
| 89 |
-
width: 3vh;
|
| 90 |
-
height: 3vh;
|
| 91 |
}
|
| 92 |
.contact {
|
| 93 |
position: absolute;
|
|
@@ -106,15 +99,18 @@ HTML = """
|
|
| 106 |
color: white;
|
| 107 |
background: #8A5AAB;
|
| 108 |
padding: 1.2vh 3.5vh;
|
| 109 |
-
margin:
|
| 110 |
text-align: center;
|
| 111 |
-
font-
|
|
|
|
| 112 |
font-weight: 600;
|
| 113 |
cursor: pointer;
|
| 114 |
display: block;
|
| 115 |
box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
|
| 116 |
transition: box-shadow 0.1s ease-in-out;
|
| 117 |
-
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
button:hover {
|
| 120 |
box-shadow: none;
|
|
@@ -147,21 +143,6 @@ HTML = """
|
|
| 147 |
text-align: left;
|
| 148 |
word-wrap: break-word;
|
| 149 |
}
|
| 150 |
-
@media (max-width: 600px) {
|
| 151 |
-
h1 {
|
| 152 |
-
font-size: 3.5vh;
|
| 153 |
-
}
|
| 154 |
-
h2, .description {
|
| 155 |
-
font-size: 2vh;
|
| 156 |
-
}
|
| 157 |
-
.provider-group label {
|
| 158 |
-
font-size: 2.2vh;
|
| 159 |
-
}
|
| 160 |
-
button {
|
| 161 |
-
font-size: 2vh;
|
| 162 |
-
padding: 2vh 3vh;
|
| 163 |
-
}
|
| 164 |
-
}
|
| 165 |
</style>
|
| 166 |
</head>
|
| 167 |
<body>
|
|
@@ -174,7 +155,7 @@ HTML = """
|
|
| 174 |
<div id="additionalText">
|
| 175 |
<h2>This addon provides Movie, Series, Anime and Live TV HTTPS Streams.<br> https://github.com/UrloMythus/MammaMia/</h2>
|
| 176 |
</div>
|
| 177 |
-
<p class="description">Configure your providers: Note that if you enable Fast Search results will be less accurate but faster
|
| 178 |
<h3 class="gives">Select Providers:</h3>
|
| 179 |
<form class="pure-form" id="provider-form">
|
| 180 |
<div class="provider-group">
|
|
@@ -219,41 +200,42 @@ HTML = """
|
|
| 219 |
<div id="manifestBox"></div>
|
| 220 |
</div>
|
| 221 |
<script>
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
|
|
|
| 238 |
}
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
});
|
| 255 |
</script>
|
| 256 |
</body>
|
| 257 |
</html>
|
| 258 |
|
|
|
|
| 259 |
"""
|
|
|
|
| 5 |
<html>
|
| 6 |
<head>
|
| 7 |
<meta charset="utf-8">
|
|
|
|
| 8 |
<title>Mamma Mia</title>
|
| 9 |
<link rel="icon" href="https://creazilla-store.fra1.digitaloceanspaces.com/emojis/49647/pizza-emoji-clipart-md.png" type="image/x-icon">
|
| 10 |
<style>
|
|
|
|
| 16 |
padding: 0;
|
| 17 |
width: 100%;
|
| 18 |
height: 100%;
|
|
|
|
| 19 |
}
|
| 20 |
body {
|
| 21 |
font-size: 2.2vh;
|
| 22 |
+
font-family: 'Open Sans', Arial, sans-serif;
|
| 23 |
color: white;
|
| 24 |
background: url('https://i.postimg.cc/m2ZqvpZj/italian-seamless-free-vector-pattern3.png') center center repeat;
|
| 25 |
background-size: cover;
|
|
|
|
| 31 |
background: rgba(0, 0, 0, 0.8);
|
| 32 |
padding: 2vh;
|
| 33 |
border-radius: 10px;
|
| 34 |
+
width: 50vh; /* Adjusted to make the box slightly larger */
|
| 35 |
+
max-width: 90%; /* Ensures it fits on smaller screens */
|
| 36 |
text-align: center;
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
.logo {
|
| 39 |
height: auto;
|
| 40 |
+
width: 12vh; /* Adjusted to ensure the logo fits properly */
|
| 41 |
margin: auto;
|
| 42 |
+
margin-bottom: 3vh;
|
| 43 |
}
|
| 44 |
.logo img {
|
| 45 |
width: 100%;
|
|
|
|
| 50 |
text-shadow: 0 0 1vh rgba(0, 0, 0, 0.15);
|
| 51 |
}
|
| 52 |
h1 {
|
| 53 |
+
font-size: 4.5vh;
|
| 54 |
font-weight: 700;
|
| 55 |
}
|
| 56 |
h2 {
|
|
|
|
| 58 |
font-weight: normal;
|
| 59 |
font-style: italic;
|
| 60 |
opacity: 0.8;
|
| 61 |
+
margin-bottom: 20px;
|
| 62 |
word-wrap: break-word;
|
| 63 |
}
|
| 64 |
h3 {
|
|
|
|
| 73 |
background: rgba(255, 255, 255, 0.1);
|
| 74 |
padding: 1vh;
|
| 75 |
border-radius: 5px;
|
|
|
|
| 76 |
}
|
| 77 |
.provider-group label {
|
| 78 |
display: flex;
|
| 79 |
align-items: center;
|
| 80 |
+
font-size: 1.75vh;
|
|
|
|
| 81 |
}
|
| 82 |
.provider-group input[type="checkbox"] {
|
| 83 |
+
margin-right: 1vh;
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
.contact {
|
| 86 |
position: absolute;
|
|
|
|
| 99 |
color: white;
|
| 100 |
background: #8A5AAB;
|
| 101 |
padding: 1.2vh 3.5vh;
|
| 102 |
+
margin: auto;
|
| 103 |
text-align: center;
|
| 104 |
+
font-family: 'Open Sans', Arial, sans-serif;
|
| 105 |
+
font-size: 2.2vh;
|
| 106 |
font-weight: 600;
|
| 107 |
cursor: pointer;
|
| 108 |
display: block;
|
| 109 |
box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
|
| 110 |
transition: box-shadow 0.1s ease-in-out;
|
| 111 |
+
width: 100%; /* Make the buttons take the full width of the container */
|
| 112 |
+
max-width: 30vh; /* Limit maximum button width for better presentation */
|
| 113 |
+
margin-bottom: 1vh; /* Add space between buttons */
|
| 114 |
}
|
| 115 |
button:hover {
|
| 116 |
box-shadow: none;
|
|
|
|
| 143 |
text-align: left;
|
| 144 |
word-wrap: break-word;
|
| 145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</style>
|
| 147 |
</head>
|
| 148 |
<body>
|
|
|
|
| 155 |
<div id="additionalText">
|
| 156 |
<h2>This addon provides Movie, Series, Anime and Live TV HTTPS Streams.<br> https://github.com/UrloMythus/MammaMia/</h2>
|
| 157 |
</div>
|
| 158 |
+
<p class="description">Configure your providers: Note that if you enable Fast Search results will be less accurate but faster. <br> Filmpertutti and Tantifilm won't work if you are not using a local (on your PC) instance.</p>
|
| 159 |
<h3 class="gives">Select Providers:</h3>
|
| 160 |
<form class="pure-form" id="provider-form">
|
| 161 |
<div class="provider-group">
|
|
|
|
| 200 |
<div id="manifestBox"></div>
|
| 201 |
</div>
|
| 202 |
<script>
|
| 203 |
+
function generateManifest() {
|
| 204 |
+
let manifest = "|";
|
| 205 |
+
const providers = {
|
| 206 |
+
"streamingcommunity": "SC",
|
| 207 |
+
"fast_search_sc": "SC_FS",
|
| 208 |
+
"lordchannel": "LC",
|
| 209 |
+
"streamingwatch": "SW",
|
| 210 |
+
"tantifilm": "TF",
|
| 211 |
+
"fast_search_tf": "TF_FS",
|
| 212 |
+
"filmpertutti": "FT",
|
| 213 |
+
"animeworld": "AW"
|
| 214 |
+
};
|
| 215 |
+
|
| 216 |
+
for (const id in providers) {
|
| 217 |
+
if (document.getElementById(id).checked) {
|
| 218 |
+
manifest += providers[id] + "|";
|
| 219 |
+
}
|
| 220 |
}
|
| 221 |
+
const instanceUrl = "{instance_url}"; // Keep http in the URL
|
| 222 |
+
const manifestUrl = instanceUrl + "/" + manifest + "/" + "manifest.json";
|
| 223 |
+
return manifestUrl;
|
| 224 |
+
}
|
| 225 |
+
document.getElementById('generateManifestButton').addEventListener('click', function() {
|
| 226 |
+
const manifestUrl = generateManifest();
|
| 227 |
+
document.getElementById("manifestBox").style.display = "block";
|
| 228 |
+
document.getElementById("manifestBox").innerText = manifestUrl;
|
| 229 |
+
});
|
| 230 |
+
document.getElementById('installButton').addEventListener('click', function() {
|
| 231 |
+
let manifestUrl = generateManifest();
|
| 232 |
+
manifestUrl = manifestUrl.replace("http://", "");
|
| 233 |
+
const stremioUrl = "stremio://" + manifestUrl;
|
| 234 |
+
window.location.href = stremioUrl;
|
| 235 |
+
});
|
|
|
|
| 236 |
</script>
|
| 237 |
</body>
|
| 238 |
</html>
|
| 239 |
|
| 240 |
+
|
| 241 |
"""
|