From b7ee639cf24ba117ede8f86f2cafe69bf05343cc Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Wed, 10 Jul 2024 23:43:52 +0200 Subject: [PATCH] Added a config.json --- README.md | 103 +++++++++++++----- __pycache__/config.cpython-311.pyc | Bin 0 -> 918 bytes __pycache__/convert.cpython-311.pyc | Bin 1164 -> 1138 bytes __pycache__/filmpertutti.cpython-311.pyc | Bin 6660 -> 6594 bytes __pycache__/info.cpython-311.pyc | Bin 1988 -> 1927 bytes __pycache__/loadenv.cpython-311.pyc | Bin 822 -> 562 bytes .../streamingcommunity.cpython-311.pyc | Bin 5205 -> 5364 bytes config.json | 21 ++++ config.py | 18 +++ convert.py | 2 +- example.env | 4 - filmpertutti.py | 5 +- info.py | 2 +- loadenv.py | 17 +-- run.py | 8 +- streamingcommunity.py | 6 +- 16 files changed, 139 insertions(+), 47 deletions(-) create mode 100644 __pycache__/config.cpython-311.pyc create mode 100644 config.json create mode 100644 config.py diff --git a/README.md b/README.md index 10a666d..0a2839f 100644 --- a/README.md +++ b/README.md @@ -1,62 +1,111 @@ + # MammaMia + + A Stremio Addon for high quality HTTPS Stream in Italian -While hosting, this project, remember that Filmpertutti uses Mixdrop. Mixdrop only allows seeing the videos only from the same IP where they were generated so, if you want to scrape filmpertutti, you have to host this project locally. Else, you can only scrape streamingcommunity. -Hosting your own instance is suggested but you can use the public instance [linked](https://mammamia-urlo-mammamia.hf.space/) in the About Page of the repo. + + +While hosting, this project, remember that Filmpertutti uses Mixdrop. Mixdrop only allows seeing the videos only from the same IP where they were generated so, if you want to scrape filmpertutti, you have to host this project locally. Else, you can only scrape streamingcommunity. + +Hosting your own instance is suggested but you can use the public instance [linked](https://mammamia-urlo-mammamia.hf.space/) in the About Page of the repo. + # Installation + ## Local + Install required packages + + `` + pip install -r requirements.txt + `` + + Then to start the Flask server just execute: + `` + python3 run.py + `` + ## Hugging Face -To host this project with Hugging Face, go to the [linked](https://huggingface.co/spaces/MammaMia-Urlo/MammaMia/) page and follow these steps - 1. Create an Hugging Face Account - 2. Click on three dots on the top (right) part of the screen - 3. Click Duplicate this Space - 4. Insert TMDB Key - 5. Clone the Project - 6. You are done! - 7. To install it on Stremio altought, you will need the Direct URL. It can be found on three dots --> Embed This Space --> Direct URL - 8. Do not forget to add /manifest.json - On Hugging Face you are forced to use the 8080 port because it is the only one allowed to send/get network requests. +To host this project with Hugging Face, go to the [linked](https://huggingface.co/spaces/MammaMia-Urlo/MammaMia/) page and follow these steps + + + +1. Create an Hugging Face Account + +2. Click on three dots on the top (right) part of the screen + +3. Click Duplicate this Space + +4. Insert TMDB Key + +5. Clone the Project + +6. You are done! + +7. To install it on Stremio altought, you will need the Direct URL. It can be found on three dots --> Embed This Space --> Direct URL + +8. Do not forget to add /manifest.json + +On Hugging Face you are forced to use the 8080 port because it is the only one allowed to send/get network requests. Moreover remember that load_env needs to be disabled (it should be by default if you clone the project from HF) + ## Render -To install this project on [Render](https://render.com/) follow these steps: - 1. Create an Account - 2. Create a Web Service - 3. Clone the repo - 4. Among the other environment variables, put PORT = 8080. This is needed because render needs the Port given as an environment variable. - 5. As build command put `` pip install -r requirements `` and as run command put ``python3 run.py `` - 6. Then just finish Render Setup and you are done :) - - +To install this project on [Render](https://render.com/) follow these steps: + +1. Create an Account + +2. Create a Web Service + +3. Clone the repo + +4. Among the other environment variables, put PORT = 8080. This is needed because render needs the Port given as an environment variable. + +5. As build command put `` pip install -r requirements `` and as run command put ``python3 run.py `` + +6. Then just finish Render Setup and you are done :) +Remember, load_env needs to be disabled in the config.json + + + + # How to add to Stremio + Just paste the URL/manifest.json in your search bar. + # Enviroment Variables + + | Enviroment Variable | Value | |-------------------------|---| |TMDB_KEY|INSERT YOUR API KEY HERE| -| FT_DOMAIN | INSERT FILMPERTUTTI DOMAIN | -|SC_DOMAIN | INSERT STREAMINGCOMMUNITY DOMAIN| -|FILMPERTUTTI|Put "1" if you want Filmpertutti to be enabled, "0" if disabled Altought keep in mind that you will only be able to use it if you get the link from the same IP of your streaming server.| -|STREAMINGCOMMUNITY|Put "1" if enabled, "0" if disabled| - - Here is [linked](https://developer.themoviedb.org/docs/getting-started) a tutorial about how to get a TMDB KEY +# Config +In the repo there is a config.json that you can modify to change some aspects of the addon like the domains of the sites. Down here all explained: +| Enviroment Variable | Value | +|-------------------------|---| +| Domain | The domain of the site, must be a string | +|enabled | If the site is enabled or not. "1" means true. "0" means false. Remember there is no point in enabling filmpertutti on a remote server since it's IP-LOCKED| +|fast_search|"1" for enabled, "0" for disabled. It enables a faster search for TuttiFilm Provider but in case there are two movies/series with the exactly same name then it might take the wrong one| +|load_env|Put "1" if enabled, "0" if disabled. It needs to be enable if you need to load a .env file. On remote hosting services, like Hugging Face or Render, it needs to be disabled. | + + + diff --git a/__pycache__/config.cpython-311.pyc b/__pycache__/config.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1ba46528e205dd942819747b1047f3aa72ef506a GIT binary patch literal 918 zcmaJ<&ui0A9DlD(lO|1VH>tE$L>LNF)~p9FB7@SkBd~PRW`~ABiF>azBR^`Jy3K>+ z;Gx2h-t^ehL`3l5A5tNQk<-wVx9SwiPQJ9Oon`p_^1ggO-_Q4F$h&Bi14O;rjYxet^8iG$tXB!Xu$6beCKj{>BQysMAHr2;EMjo?;9rP8T=lc`j?%p2u~~n3+<+E39Ht2+rXx+36<@p+8{Rw{xybX)l`Hm zQ;<}{P$f+j&c8aYj0z0nIsbXX#5Q>4uU6 z5P<2oxs&L%j(k|{K7F-yxaAZFArc)?BlE*g`sJHx>@sgS99|Y4a3Fl8Q-Arwp^o`@ z_omC=>Lp$NuEP@8pS$hycY6CSzdXWYI_2{B2#j6rmfYAvPjq7$hd)lF`ss|D5I(VP p;z1wGpK$SR%H^&*%rP79rd{@iL;Kp|$=ThxrQk;@%Y24e<`1m)-b?@h literal 0 HcmV?d00001 diff --git a/__pycache__/convert.cpython-311.pyc b/__pycache__/convert.cpython-311.pyc index 3531123fbc7c6ea8ee6297f8c17d62cc648ff9af..cc4cfff241816e3c032806cafae3cb1d1af14f91 100644 GIT binary patch delta 106 zcmeC-{KTQYoR^o20SLB#?@O~_Vqka-;=llq4+ft-CaT+WM6su^v@k?*Y^(}mVvL`B tmgyZM=j1)iMw34>%W%m66*2;GanfXQ7AGz)p$?5stsbogj>&l}asaJr7h(Va delta 182 zcmeyw(Zi{}oR^o20SIon_olfpF)%y^abSQI%J>{IQQcl72FQ(KkK%y96qXi-D9(*} zK}?JalMgbzW8|8=f!Rp&7Gr#oI8fV4h9U_dRU`%^esS33=BJeAq}mn90=bMpT%0?Z pgT={MOm0HP#H=Y<7a4>bI64$N0w*v|Q2fBe#VGQD0h0im2mrT+C}RKs diff --git a/__pycache__/filmpertutti.cpython-311.pyc b/__pycache__/filmpertutti.cpython-311.pyc index 254eebc668eeaace81f4198098029638df4ee6ba..7fd3c9b0053b736807e8c41b7dfda7b91f35f2f2 100644 GIT binary patch delta 927 zcmZ8f%}*0S6z?o_+iiDYX}hJRt$~;bMWR89hK~To6AGdriCGR!akh0~`@wW;qS4R; z2NMz#91~6C!ohg+(*MB3XpBb>W-oftz|F*qa`L@_#E;$VZ{Pghdo%C--fZPwk7zG7 zE#!k|`{$$L*p8MY`#b&Xn`Pb9iI4hd!09SS%!sfhCu&B4lbo0tvtnxo=HX)+G)NU1 z+Lg>W4O5kBw1ak1op#X(jnWu3Xqk!g(vz7hE%`eu2bVx%vF>FFiQ z&096QUZqyvu`BCr3FsVORHn!r-%&0NExN_~(m6nmn0RPb0w{R8c1FY(hOdR;(&(4U&{d@9l*R9pZvmNZe z)5kChWnno0&tGEIMva|EVwF$oXXQ0CXZVIb^H(Jj!k z)PH8Q#y=aQ2_cb+>enphHeAEw4Tdn7W>PKR)0>^|5 zL9`|?1jlg)wi1PV?RKSDWg+y6megZ!o)%n-sUpFtmP&S|lu=3{IA-wBcA&Y!^5JU)|w%6WctV9FBhSX-)BdQ6nGKbW`~r LM5CqCEL`RdR@P<0+^uz0vM56&C z3yhl3JWX5>6Jt=L%dXw%#+8v3$t;X3m7VJ@)O$w~U_K}3ow@hE`_9~tiH&~m8?U!P zfNN~*$?|x`8zg@!vFtPvs6btYFW00t<(k!Ido39)Ilt<+xx-LY#UW^ouOat67O=0I zPC-yx)i!wHrf%9mJ=+d7Q27$*qk(N%4btF-ptjR?zz_`qhG`fuLL-13v;(k{I_89U zC-;-IhggzPNYj*-U#*&Cv7U7EJ?Dzp54*7#pAw&wDE}$OoD(2~t1Ye{M7)IG#`#}K z310v8K_mK=S}8D(Zf5GK-k_3on&|jhWVDW$S`Vw&nhu-2IX14ri4z8BE5iMdyId` zl8^n8EdQVk1Z<0BG`pxVvuv6=dj_#;wV_of;v~>`l;3U(t>NLVy2VmI6M-=o!V-dQ zgM@4tz;Z1W@~cqFZrpO=D8VE#oOr8V&o3942V?C6$_KG2nl?4&wbPA4CZp#w7D=&( z7}$+)PPhVicz&FVLlf+d8IBaghV3D$NyE7UEgRYhdjT4OxAcHd1s?grUxi~2-wPxH h-<8PLwTk*w-4$Ba$@<{t%;w5g*Kd(Wf-mc_=sz15?4kew diff --git a/__pycache__/info.cpython-311.pyc b/__pycache__/info.cpython-311.pyc index da7c0a528801423ba75f706a95b6e30cf86f46d6..044c2a6cab513fe5f57edaa671d3cf9a21624436 100644 GIT binary patch delta 113 zcmX@Y-_EbToR^o20SJzK?@N2k!octt#DM`ODC2Y3M0Iz*D9#j?7KSLU6jmU~y|F`; znK6FzI_5V_j69QPv$;-YWmn`f0_tD{;^KzM2JC@cTtXchomxFw4IGoFv+Du?WH=c6 delta 175 zcmZqYKfuqkqx0&QRf;^Lmk|Jee?^vzdPtgKp7b&)}*fulpP!>}Xff|SnW HD0W={A`vXJ diff --git a/__pycache__/loadenv.cpython-311.pyc b/__pycache__/loadenv.cpython-311.pyc index deb16fe75e0b9d470e8194517879672223a2ecde..a75f4fb6bd04fc447590025bf6bc65788c1a6028 100644 GIT binary patch literal 562 zcmZWl%}eV*5TD(wv9**S$}2n&M7-qE;N1_93WC(fqaHMu61!`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