File size: 9,504 Bytes
2a9b5a5
 
 
 
 
 
 
 
 
c49e9c7
48cbaec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c49e9c7
48cbaec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4bcd116
48cbaec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c49e9c7
48cbaec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a9b5a5
 
 
 
 
 
 
 
 
7f9cb93
2a9b5a5
8d9b727
2a9b5a5
 
 
48cbaec
2a9b5a5
c627018
48cbaec
 
 
 
 
2a9b5a5
 
48cbaec
2a9b5a5
 
 
 
48cbaec
2a9b5a5
 
 
 
48cbaec
2a9b5a5
c627018
48cbaec
 
 
 
 
2a9b5a5
 
48cbaec
2a9b5a5
 
 
 
48cbaec
2a9b5a5
 
 
 
8d9b727
 
2a9b5a5
 
 
ec267de
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a9b5a5
ec267de
48cbaec
 
 
ec267de
48cbaec
 
 
 
 
 
 
 
 
 
ec267de
2a9b5a5
48cbaec
 
 
2a9b5a5
 
d9997bb
2a9b5a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# static.py

HTML = """
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Mamma Mia</title>
    <link rel="icon" href="https://creazilla-store.fra1.digitaloceanspaces.com/emojis/49647/pizza-emoji-clipart-md.png" type="image/x-icon">
    <title>Fast Search Example</title>
    <style>
        * {
            box-sizing: border-box;
        }
        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            font-size: 2.2vh;
            font-family: 'Open Sans', Arial, sans-serif;
            color: white;
            background: url('https://i.postimg.cc/m2ZqvpZj/italian-seamless-free-vector-pattern3.png') center center repeat;
            background-size: cover;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            overflow-y: auto;
        }
        #addon {
            background: rgba(0, 0, 0, 0.8);
            padding: 0.5vh;
            border-radius: 10px;
            width: 65vh;
            max-width: 100%;
            text-align: center;
            margin-top: 10vh;
        }
        .logo {
            width: 12vh;
            margin: 0 auto;
            margin-bottom: 3vh;
            margin-top: -3vh;
        }
        .logo img {
            width: 100%;
            height: auto;
        }
        h1, h2, h3 {
            margin: 0;
            text-shadow: 0 0 1vh rgba(0, 0, 0, 0.15);
        }
        h1 {
            font-size: 4.5vh;
            font-weight: 700;
        }
        h2 {
            font-size: 2vh;
            font-weight: normal;
            font-style: italic;
            opacity: 0.8;
            margin-bottom: 20px;
        }
        h3 {
            font-size: 2.2vh;
            margin-bottom: 10px;
        }
        .provider-group {
            display: flex;
            align-items: center; /* Vertically align items */
            justify-content: space-between; /* Spread items across the available space */
            margin-bottom: 2vh;
            background: rgba(255, 255, 255, 0.1);
            padding: 1.5vh;
            border-radius: 5px;
            overflow: hidden;
            width: 100%;
        }
        .provider-group label {
            display: flex;
            align-items: center; /* Align items within label vertically centered */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            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;
            height: 4vh;
        }
        .parent-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        .contact {
            position: absolute;
            left: 0;
            bottom: 4vh;
            width: 100%;
            text-align: center;
        }
        .contact a {
            font-size: 1.4vh;
            font-style: italic;
        }
        button {
            border: 0;
            outline: 0;
            color: white;
            background: #8A5AAB;
            padding: 1.2vh 3.5vh;
            text-align: center;
            font-family: 'Open Sans', Arial, sans-serif;
            font-size: 2.2vh;
            font-weight: 600;
            cursor: pointer;
            display: block;
            box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
            transition: box-shadow 0.1s ease-in-out;
            width: 80%;
            max-width: 35vh;
            margin: 1vh auto;
        }
        button:hover {
            box-shadow: none;
        }
        button:active {
            box-shadow: 0 0 0 0.5vh white inset;
        }
        #manifestBox {
            margin-top: 2vh;
            padding: 2vh;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            display: none;
            text-align: left;
            white-space: pre-wrap;
        }
        #generateManifestButton {
            background: #4CAF50;
        }
        #installButton {
            background: #FF5722;
        }
        #installButton a {
            color: white;
            text-decoration: none;
        }
        #additionalText {
            margin-top: 2vh;
            font-size: 1.8vh;
            text-align: left;
        }
        /* Responsive adjustments for smaller screens */
        @media (max-width: 600px) {
            .provider-group label {
                font-size: 2vh;
                white-space: nowrap;
            }
        }
    </style>
</head>
<body>
    <div id="addon">
        <div class="logo">
            <img src="https://creazilla-store.fra1.digitaloceanspaces.com/emojis/49647/pizza-emoji-clipart-md.png" alt="Logo">
        </div>
        <h1 class="name">Mamma Mia</h1>
        <h2 class="version">v1.0.10</h2>
        <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. <br> Filmpertutti and Tantifilm won't work if you are not using a local (on your PC) instance.</p>
        <h3 class="gives">Select Providers:</h3>
        <form class="pure-form" id="provider-form">
            <div class="provider-group">
                <label for="streamingcommunity" class="provider-label">
                    <input type="checkbox" id="streamingcommunity"> StreamingCommunity
                </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="lordchannel" class="provider-label">
                    <input type="checkbox" id="lordchannel"> LordChannel
                </label>
            </div>
            <div class="provider-group">
                <label for="streamingwatch" class="provider-label">
                    <input type="checkbox" id="streamingwatch"> StreamingWatch
                </label>
            </div>
            <div class="provider-group">
                <label for="tantifilm" class="provider-label">
                    <input type="checkbox" id="tantifilm"> Tantifilm
                </label>
                <span class="fast-search">
                    <label for="fast_search_tf">
                        <input type="checkbox" id="fast_search_tf"> Fast Search
                    </label>
                </span>
            </div>
            <div class="provider-group">
                <label for="filmpertutti" class="provider-label">
                    <input type="checkbox" id="filmpertutti"> Filmpertutti
                </label>
            </div>
            <div class="provider-group">
                <label for="animeworld" class="provider-label">
                    <input type="checkbox" id="animeworld"> Animeworld
                </label>
            </div>
        </form>
        <button id="generateManifestButton">Generate Link</button>
        <button id="installButton">INSTALL</button>
        <div id="manifestBox"></div>
    </div>
    <script>
        function generateManifest() {
            let manifest = "|";
            const providers = {
                "streamingcommunity": "SC",
                "fast_search_sc": "SC_FS",
                "lordchannel": "LC",
                "streamingwatch": "SW",
                "tantifilm": "TF",
                "fast_search_tf": "TF_FS",
                "filmpertutti": "FT",
                "animeworld": "AW"
            };
            
            for (const id in providers) {
                if (document.getElementById(id).checked) {
                    manifest += providers[id] + "|";
                }
            }
            const instanceUrl = "{instance_url}";  // Keep http in the URL
            manifest += "|";

            document.getElementById("manifestBox").innerText = manifest.replace(/\|+$/, "");
            document.getElementById("manifestBox").style.display = "block";
        }

        document.getElementById("generateManifestButton").addEventListener("click", generateManifest);
        
        document.getElementById("installButton").addEventListener("click", function() {
            const manifestText = document.getElementById("manifestBox").innerText;
            const anchor = document.createElement('a');
            anchor.href = "http://127.0.0.1:8050/" + manifestText; // Correct URL format
            anchor.target = "_blank";
            anchor.click();
        });
    </script>
    <div class="contact">
        <a href="mailto:youremail@example.com">Contact Us</a>
    </div>
</body>
</html>

"""