-
Send the direct link on a message (Use main.py)
-
Download and upload the file to telegram (Use uploader.py)
Note
The max upload size is 2GB.
Example: Turbobit.net is supported but not its mirrors on Real Debrid.
('turbobif.com', 'turbobit.com', 'turb.to', 'turb.pw', 'turb.cc', 'turbo.to', 'turbo.pw', 'turbo.cc', 'turbobit.net', 'trbbt.net ')
Search for
def get_premium_link(url):
And add the mirror of hostings that aren't supported by Real Debird.
As you can see in the code:
for mirror_host in ['turbobif.com', 'turbobit.com', 'turb.to', 'turb.pw', 'turb.cc', 'turbo.to', 'turbo.pw', 'turbo.cc', 'turbobit.net', 'trbbt.net']:
url = url.replace(mirror_host, 'turbobit.net')
This allows to allow the mirrors of Turbobit to be accepted. You can add more
Just do in a new line after that:
for mirror_host in ['MIRROR LINK', 'MIRROR LINK']:
url = url.replace(mirror_host, 'ACCEPTED LINK BY RD')
-
Install python
-
Install requirements
-
pip install -r requirements.txt
-
If you are using docker, edit Docker file, Default is "uploader.py" but you can change it if you want to use "main.py" Also in docker file enter the Real Debrid API and Token
-
Edit main.py and uploader.py with your Real Debrid API and Token
-
If using Docker run them using
sudo docker build . -t rd
sudo docker run rd
-
run main.py or uploader.py
-
python main.py
or
python uploader.py
HOWEVER....
- There is no progress bar yet. So try to check logs if anything wrong happened.
- And probably you need more requirements ><
Thanks
To Oihalitz for the base code and to Anasty17 for inspiring me.