MammaMia version 2.0.0
This commit is contained in:
@@ -52,13 +52,28 @@ Movies, Series, Anime and Live TV are supported.
|
||||
|
||||
``pip install -r requirements.txt ``
|
||||
|
||||
2. Create a .env file and fill it (look at example.env)
|
||||
2. If you want to use Eurostreaming install those packages:
|
||||
|
||||
- Linux (Debian/Ubuntu):
|
||||
``sudo apt install tesseract-ocr libtesseract-dev ``
|
||||
|
||||
- Windows: Install the following library from this [link](https://github.com/UB-Mannheim/tesseract/wiki)
|
||||
|
||||
- MacOS: ```brew install tesseract```
|
||||
|
||||
|
||||
Then install the following Python package:
|
||||
|
||||
``pip install pytesseract ``
|
||||
|
||||
3. Create a .env file and fill it (look at example.env)
|
||||
|
||||
4. Modify the config.json as you wish
|
||||
|
||||
|
||||
|
||||
|
||||
3. Then to start the Fast API app server just execute:
|
||||
4. Then to start the Fast API app server just execute:
|
||||
|
||||
|
||||
|
||||
@@ -80,7 +95,7 @@ Movies, Series, Anime and Live TV are supported.
|
||||
|
||||
|
||||
|
||||
To host this project with Hugging Face, go to the [linked](https://huggingface.co/spaces/aiMAmmaM/DuplicateTheSpace) page and follow these steps:
|
||||
To host this project with Hugging Face you will need a Github Account, a Hugging Face account and a [TMDB KEY](https://www.educative.io/courses/movie-database-api-python/set-up-the-credentials).
|
||||
|
||||
|
||||
|
||||
@@ -90,38 +105,56 @@ To host this project with Hugging Face, go to the [linked](https://huggingface.c
|
||||
|
||||
|
||||
|
||||
1. Create an Hugging Face Account [here](https://huggingface.co/join)
|
||||
1. Fork this project and give it a random name.
|
||||
|
||||
|
||||
[!WARNING] The name must not be related to Mamma Mia or mediaflowproxy. Just use a random name
|
||||
|
||||
2. Go to [linked](https://huggingface.co/spaces/aiMAmmaM/DuplicateTheSpace) page and click on three dots on the top (right) part of the screen
|
||||
2. Go on the Github of the [Repo](https://github.com/UrloMythus/MammaMia/), click on Fork -> Create New Fork -> Create One.
|
||||
|
||||
3. Click Duplicate this Space
|
||||
|
||||
4. Insert TMDB Key and set visibility to Public
|
||||
3. Click on static directory and then click on static.py. Remove the whole content and put:
|
||||
```
|
||||
HTML = """
|
||||
Whatever you want
|
||||
"""
|
||||
```
|
||||
4. Change ```Whatever you want``` with a random phrase (the longer it is, the better it is). If you are too lazy go to this [link](https://www.thewordfinder.com/random-sentence-generator/) and generate it.
|
||||
|
||||
5. Duplicate the Project
|
||||
5. Click Commit Changes
|
||||
[!WARNING] Since the main page doesn't exist anymore, you will need to configure MammaMia from /configure endpoint
|
||||
|
||||
6. Go on the Github of the [Repo](https://github.com/UrloMythus/MammaMia/), and after creating a Github Account click on Fork -> Create New Fork -> Create One.
|
||||
7. After that go back to your HuggingFace Space and click on Files --> Click on Dockerfile ---> Click on edit ---> Where there is "YourUsername" put your Github username and where there is "YourRepoName" insert the name of the fork.
|
||||
8. When you are done click Commit Changes to main
|
||||
|
||||
|
||||
7. You are done!
|
||||
6. Go to [linked](https://huggingface.co/login?next=%2Fnew-space) page and create a new Public Docker Space.
|
||||
[!WARNING] The Space must be Public or else you won't be able to access it
|
||||
|
||||
|
||||
7. Go to Settings and in ```Variables and secrets``` section click New Secret. As ```Name``` put TMDB_KEY and as ```Value`` put your TMDB Key
|
||||
|
||||
8. Go to Files and click Contribute -> Create a new file
|
||||
|
||||
9. In ```Name your file``` field put ```Dockerfile``` . Inside the text box put the content of the Dockerfile called ```Dockerfile-auto-update-no-config``` which you will find inside the /Dockerfiles directory of your Github Fork.
|
||||
|
||||
10. Where there is "YourUsername" put your Github username and where there is "YourRepoName" insert the name of the fork.
|
||||
[!WARNING] Don't remove the final . or it won't work
|
||||
|
||||
11. When you are done click Commit Changes to main
|
||||
|
||||
12. Go to the README.md in the Files section of your HuggingFace's space and click on it. After that click on edit. After ```pinned: false``` insert this ```app_port: 8080```
|
||||
|
||||
13. When you are done click Commit Changes to main
|
||||
|
||||
14. You are done!
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8. To install it on Stremio altought, you will need the Direct URL. It can be found on three dots --> Embed This Space --> Direct URL
|
||||
15. To install it on Stremio you will need the Direct URL. It can be found on three dots --> Embed This Space --> Direct URL
|
||||
If you do not find it it means your space is Private. To fix so go to Settings and click Set Visibility to Public.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
How do I handle Updates ? First of all you will need to go to your GitHub Repo and click Sync Changes. Then go into your HuggingFace Space ---> Settings ---> Factory Reset
|
||||
16. How to handle updates: First of all you will need to go to your GitHub Repo and click Sync Changes (without discarding commits). Then go into your HuggingFace Space ---> Settings ---> Factory Reset
|
||||
|
||||
|
||||
|
||||
@@ -130,7 +163,7 @@ How do I handle Updates ? First of all you will need to go to your GitHub Repo a
|
||||
|
||||
## Render
|
||||
|
||||
[](https://render.com/deploy?repo=https://github.com/UrloMythus/MammaMia)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -168,7 +201,7 @@ To install this project on [Render](https://render.com/) follow these steps:
|
||||
|
||||
|
||||
|
||||
4. Among the other environment variables, put PORT = 8080. This is needed because Render needs the Port given as an environment variable. Remember to put TMDB_KEY as an enviroment variable.
|
||||
4. Aside from usual enviroment variables you will need to put PORT = 8080.
|
||||
|
||||
|
||||
|
||||
@@ -190,8 +223,7 @@ To install this project on [Render](https://render.com/) follow these steps:
|
||||
|
||||
|
||||
|
||||
Remember, load_env and Public Instance needs to be disabled in the config.json and Remote_Instance needs to be set to 1
|
||||
|
||||
Remember, load_env needs to be disabled in the config.json
|
||||
|
||||
|
||||
|
||||
@@ -199,19 +231,10 @@ Remember, load_env and Public Instance needs to be disabled in the config.json a
|
||||
# Vercel
|
||||
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FUrloMythus%2FMammaMia&env=PORT,TMDB_KEY&envDescription=PORT%20(8080)%20and%20API%20KEY%20of%20TMDB&envLink=https%3A%2F%2Fgithub.com%2FUrloMythus%2FMammaMia%2Fblob%2Fmain%2Fexample.env)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# How to add to Stremio
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Open your instance URL and configure MammaMia. Once you are done you can click on INSTALL Button. If it doesn't work click on Generate Manifest and copy it. Then paste it in Stremio Search Bar. If you are on Mac or on Web go to addons, click Add an Addon, and paste it there.
|
||||
|
||||
|
||||
|
||||
@@ -232,14 +255,12 @@ Open your instance URL and configure MammaMia. Once you are done you can click o
|
||||
| Enviroment Variable | Value |
|
||||
|-------------------------|---|
|
||||
|TMDB_KEY|INSERT YOUR API KEY HERE|
|
||||
|FORWARDPROXY| "YOURFORWARDPROXY/" For sites with Cloudfare Protections|
|
||||
|PROXY | ["PROXY1","PROXY2"] For sites with Cloudfare Protections, use as many as you wish|
|
||||
|FORWARDPROXY| "YOURFORWARDPROXY/" |
|
||||
|PROXY | ["PROXY1","PROXY2"]|
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Here is [linked](https://www.themoviedb.org/settings/api) a tutorial about how to get a TMDB KEY
|
||||
Tutorial to get the TMDB Key: [Tutorial](https://www.themoviedb.org/settings/api)
|
||||
|
||||
|
||||
|
||||
@@ -264,27 +285,22 @@ Down here all explained:
|
||||
| Config | Value |
|
||||
|-------------------------|---|
|
||||
| Domain | The domain of the site, must be a string |
|
||||
|enabled | If the site is enabled or not. This will override user-preference while configuration the add-on|
|
||||
|**_ForwardProxy|If that site needs to use a ForwardProxy which needs to be given in the enviroment variables
|
||||
|**_Proxy| If that site needs to use Proxies which need to be given in the enviroment variables
|
||||
|Cookies| Cookies needed for a specific site to work. To get them you will need to log in the site and obtain cookies using Dev Tools.
|
||||
|enabled | If the site is enabled or not. This will override user-preference in the configuration|
|
||||
|**_ForwardProxy| Whether or not to use the ForwardProxy for the specific site.|
|
||||
|**_Proxy| Whether or not to use the Proxies for the specific site.|
|
||||
|load_env|It needs to be enabled if you need to load a .env file. On remote hosting services, like Hugging Face or Render, it needs to be disabled. |
|
||||
|HOST| The host for the Fast API APP|
|
||||
|PORT| The port for the Fast API APP. Default: 8080 |
|
||||
|PORT| The port for the Fast API APP. Default: 8080
|
||||
|level| The level for the logging module. Default: info
|
||||
|Icon| The Icon for the Add-On.|
|
||||
|Public_Instance| If it's the main public instance. Most of users shouldn't care about this|
|
||||
|Remote_Instance| Set to "1" if the server where the add-on is hosted has not the same IP of the one where Stremio Server is.|
|
||||
|Global_Proxy| Whatever to enable a Global Proxy which will be valid for every request in the add-on.
|
||||
|
||||
|
||||
For now Mysterius must be kept disabled if you do not know what you are doing.
|
||||
|
||||
|
||||
Check those links to get the new Domain for the providers.
|
||||
|
||||
|
||||
|
||||
[FILMPERTUTTI](https://filmpertuttiiii.nuovo.live/)
|
||||
|
||||
|
||||
|
||||
@@ -292,7 +308,6 @@ Check those links to get the new Domain for the providers.
|
||||
|
||||
|
||||
|
||||
[TANTIFILM](https://tantinuovo.com/tantifilm-nuovo-indirizzo/)
|
||||
|
||||
|
||||
|
||||
@@ -300,7 +315,6 @@ Check those links to get the new Domain for the providers.
|
||||
|
||||
|
||||
|
||||
[LORDCHANNEL](https://t.me/+5MQwrb3eqb81NGI0)
|
||||
|
||||
|
||||
|
||||
@@ -308,10 +322,17 @@ Check those links to get the new Domain for the providers.
|
||||
|
||||
[CB01](https://cb01.uno/)
|
||||
|
||||
[GUARDAFLIX](https://guardoserie.it/)
|
||||
|
||||
[GUARDOSERIE](https://guardoserie.it/)
|
||||
|
||||
[EUROSTREAMING](https://eurostreaming-nuovo-indirizzo.online/)
|
||||
|
||||
|
||||
|
||||
## Mediaflow Proxy
|
||||
|
||||
This project uses Mediaflow-Proxy to bypass some protections. You can find instructions about how to install it [here](https://github.com/mhdzumair/mediaflow-proxy/).
|
||||
Not only some provider won't play without it, as said in the config, but also most of paid channels won't.
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user