From 43efa5b754e348fb4a59746275e7914d10918504 Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Wed, 1 Oct 2025 18:57:46 +0200 Subject: [PATCH] Add option to disable MFP for SC --- Src/Utilities/dictionaries.py | 2 +- run.py | 2 ++ static/configure.py | 12 ++++++++++-- static/static.py | 12 ++++++++++-- 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/Src/Utilities/dictionaries.py b/Src/Utilities/dictionaries.py index 7520867..ce37b2a 100644 --- a/Src/Utilities/dictionaries.py +++ b/Src/Utilities/dictionaries.py @@ -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', diff --git a/run.py b/run.py index d9b4393..ec5495c 100644 --- a/run.py +++ b/run.py @@ -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) diff --git a/static/configure.py b/static/configure.py index 2191030..fd58491 100644 --- a/static/configure.py +++ b/static/configure.py @@ -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 = """ Logo

Mamma Mia

-

v2.0.1

+

v2.0.2

This addon provides Movie, Series, Anime, and Live TV HTTPS Streams.
https://github.com/UrloMythus/MammaMia/

-

🕵️‍♂️ = Mediaflowproxy might be needed

+

🕵️‍♂️ = Mediaflowproxy might be needed
Select the box with this icon if you want to enable MFP for that source

Select Providers:

@@ -221,6 +227,7 @@ CONFIGURE = """
@@ -273,6 +280,7 @@ CONFIGURE = """ "guardoserie": "GO", "guardaflix": "GF", "eurostreaming": "ES", + "streamingcommunity_mfp": "SC_MFP", "mediaflowproxy": "MFP" }; diff --git a/static/static.py b/static/static.py index 569a997..6507b56 100644 --- a/static/static.py +++ b/static/static.py @@ -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 = """ Logo

Mamma Mia

-

v2.0.1

+

v2.0.2

This addon provides Movie, Series, Anime, and Live TV HTTPS Streams.
https://github.com/UrloMythus/MammaMia/

-

🕵️‍♂️ = Mediaflowproxy might be needed

+

🕵️‍♂️ = Mediaflowproxy might be needed
Select the box with this icon if you want to enable MFP for that source

Select Providers:

@@ -221,6 +227,7 @@ HTML = """
@@ -273,6 +280,7 @@ HTML = """ "guardoserie": "GO", "guardaflix": "GF", "eurostreaming": "ES", + "streamingcommunity_mfp": "SC_MFP", "mediaflowproxy": "MFP" };