Add option to disable MFP for SC
This commit is contained in:
@@ -438,7 +438,7 @@ extra_sources = {
|
||||
|
||||
provider_map = {
|
||||
'SC': 'STREAMINGCOMMUNITY',
|
||||
'SC_FS': 'SC_FAST_SEARCH',
|
||||
'SC_MFP': 'SC_MFP',
|
||||
'LC': 'LORDCHANNEL',
|
||||
'SW': 'STREAMINGWATCH',
|
||||
'TF_FS': 'TF_FAST_SEARCH',
|
||||
|
||||
@@ -256,6 +256,8 @@ async def addon_stream(request: Request,config, type, id,):
|
||||
streams = await animeworld(streams,id,client)
|
||||
else:
|
||||
if provider_maps['STREAMINGCOMMUNITY'] == "1" and SC == "1":
|
||||
if provider_maps['SC_MFP'] == "0":
|
||||
MFP == "0"
|
||||
streams = await streaming_community(streams,id,client,MFP,MFP_CREDENTIALS)
|
||||
if provider_maps['STREAMINGWATCH'] == "1" and SW == "1":
|
||||
streams = await streamingwatch(streams,id,client)
|
||||
|
||||
+10
-2
@@ -75,6 +75,7 @@ CONFIGURE = """
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.provider-group label {
|
||||
display: flex;
|
||||
@@ -90,6 +91,11 @@ CONFIGURE = """
|
||||
width: 4vh;
|
||||
height: 4vh;
|
||||
}
|
||||
.provider-group input[type="checkbox"][id$="_mfp"] {
|
||||
margin-left: 2.2vh;
|
||||
width: 4vh;
|
||||
height: 4vh;
|
||||
}
|
||||
.parent-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -174,11 +180,11 @@ CONFIGURE = """
|
||||
<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">v2.0.1</h2>
|
||||
<h2 class="version">v2.0.2</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">🕵️♂️ = Mediaflowproxy might be needed</p>
|
||||
<p class="description">🕵️♂️ = Mediaflowproxy might be needed <br>Select the box with this icon if you want to enable MFP for that source<br></p>
|
||||
<h3 class="gives">Select Providers:</h3>
|
||||
<form class="pure-form" id="provider-form">
|
||||
<div class="provider-group">
|
||||
@@ -221,6 +227,7 @@ CONFIGURE = """
|
||||
<div class="provider-group">
|
||||
<label for="streamingcommunity" class="provider-label">
|
||||
<input type="checkbox" id="streamingcommunity"> StreamingCommunity 🕵️♂️
|
||||
<input type="checkbox" id="streamingcommunity_mfp" checked> 🕵️♂️
|
||||
</label>
|
||||
</div>
|
||||
<div class="provider-group">
|
||||
@@ -273,6 +280,7 @@ CONFIGURE = """
|
||||
"guardoserie": "GO",
|
||||
"guardaflix": "GF",
|
||||
"eurostreaming": "ES",
|
||||
"streamingcommunity_mfp": "SC_MFP",
|
||||
"mediaflowproxy": "MFP"
|
||||
};
|
||||
|
||||
|
||||
+10
-2
@@ -75,6 +75,7 @@ HTML = """
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.provider-group label {
|
||||
display: flex;
|
||||
@@ -90,6 +91,11 @@ HTML = """
|
||||
width: 4vh;
|
||||
height: 4vh;
|
||||
}
|
||||
.provider-group input[type="checkbox"][id$="_mfp"] {
|
||||
margin-left: 2.2vh;
|
||||
width: 4vh;
|
||||
height: 4vh;
|
||||
}
|
||||
.parent-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -174,11 +180,11 @@ HTML = """
|
||||
<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">v2.0.1</h2>
|
||||
<h2 class="version">v2.0.2</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">🕵️♂️ = Mediaflowproxy might be needed</p>
|
||||
<p class="description">🕵️♂️ = Mediaflowproxy might be needed <br>Select the box with this icon if you want to enable MFP for that source<br></p>
|
||||
<h3 class="gives">Select Providers:</h3>
|
||||
<form class="pure-form" id="provider-form">
|
||||
<div class="provider-group">
|
||||
@@ -221,6 +227,7 @@ HTML = """
|
||||
<div class="provider-group">
|
||||
<label for="streamingcommunity" class="provider-label">
|
||||
<input type="checkbox" id="streamingcommunity"> StreamingCommunity 🕵️♂️
|
||||
<input type="checkbox" id="streamingcommunity_mfp" checked> 🕵️♂️
|
||||
</label>
|
||||
</div>
|
||||
<div class="provider-group">
|
||||
@@ -273,6 +280,7 @@ HTML = """
|
||||
"guardoserie": "GO",
|
||||
"guardaflix": "GF",
|
||||
"eurostreaming": "ES",
|
||||
"streamingcommunity_mfp": "SC_MFP",
|
||||
"mediaflowproxy": "MFP"
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user