Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Latest commit

 

History

History
115 lines (78 loc) · 4.76 KB

README.md

File metadata and controls

115 lines (78 loc) · 4.76 KB

Torrent / YouTube Leecher 🔥🤖

A Torrent, youtube-dl Leecher, and Uploader!

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the COPYING for more details.

installing

The Eas(iest) Way

  • Install Docker by following the official docker docs

  • Start docker daemon [skip if already running]:

dockerd
  • Build Docker image:
docker build -t torrent-leecher .
  • Setup config.env
cp sample_config.env config.env
  • Run the image:
docker run --env-file path/to/config.env torrent-leecher

It is not recommended to use "sudo", un-necessarily, in a GNU/Linux system. GNU/Linux Permissions are highly customisable, and it is generally not required to have "ROOT" permission, unless you know what you are doing. You can still install all the dependencies in your system [with ROOT permissions], but please be aware of the potential issues when doing so. The installed packages may conflict with the system package manager's installed packages, which can cause trouble down the road and errors when upgrading conflicting packages. You have been warned.

The Legacy Way

Simply clone the repository and run the main file:

git clone https://github.com/SayanthD/torrent-leecher.git
cd torrent-leecher
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
cp sample_config.env config.env
python3 -m publicleechgroup

Variable Explanations

Mandatory Variables
  • BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.

  • API_ID & API_HASH: Get these two values from my.telegram.org/apps.

    • N.B.: if Telegram is blocked by your ISP, try our Telegram bot to get the IDs.
  • AUTH_CHATS: Create a Super Group in Telegram, add @GoogleIMGBot to the group, and send /id in the chat, to get this value. You can add multiple IDs seperated by space.

Optional Configuration Variables
  • EDIT_SLEEP_TIME_OUT: The number of seconds to sleep after editing a Telegram message.

  • FINISHED_PROGRESS_STR: any character(s) that might be displayed in the progress string.

  • UN_FINISHED_PROGRESS_STR: any character(s) that might be displayed in the progress string.

  • R_CLONE_CONF_URI: a help, maybe

  • R_CLONE_DEST: Destination folder for rclone copying. Set your path starting with '/'. Or just leave '/' to set root folder

  • DOWNLOAD_LOCATION: optional download directory, where the temporary downloads should ideally reside.

  • MAX_FILE_SIZE: The maximum file_size allowed by Telegram BOT API, kept for legacy purposes.

  • MAX_MESSAGE_LENGTH: The maximum message length, allowed by Telegram.

  • SPLIT_ALGORITHM: allowed values can be split or rar.

    • VIDEO files are not affected based on this value.

Available Commands

  • The available commands depends on the ENVironment / CONfig variables that is set by you.
  • You can set this by changing COMMAND VARIABLES section in config.env file.

How to Use?

  • send any link, and click on the available buttons.

  • you can read the config.env file, to know about the commands.

    • LEECH can take multiple arguments
      • archive: if you want a .tar.gz file, in your Telegram Chat.
      • rclone x: if you want to mirror to an rClone supported host, x is index of your required host (and is optional, default value is 0), in your uploaded rclone.conf file.
  • if file is larger than MAX_FILE_SIZE, read this.

  • if file is a TAR archive, read this to know how to uncompress.

Credits, and Thanks to