This Bot can download shows and movies from MyAsianTv.
Base code is from UDB.
Can Download episode range for a drama.
Select specific episodes in addition to a range of episodes. Examples of valid inputs: 1,3,5 | 1-4,6 | 5 | 1-5 | 1- | -3
Can set captions and Thumnails for medias.
Concurrent Upload of Maxmimum 16 episodes per upload,
Rclone Support. Can Upload Episode by episode or download the whole series and zip it and upload.
For rclone to work add your rclone.conf to the main directory after clonning.
Only can download one movie or a series at one time.
No progress for download. But will send a message saying the episode dowloaded.
One ongoing task at a time.
Don't send multiple commands while a process is ongoing.
Thumbnail and caption feature will only work if the MongoDB is connected.(Recommended to add this)
Only the owner can use the bot.
All files are send as documents.
Upload progress messages are everywhere.
- Clone this repo:
git clone https://github.com/pachax001/My-Asian-Tv-Dramacool-Telegram-bot && cd My-Asian-Tv-Dramacool-Telegram-bot
Install Docker by following the official Docker docs
Fill the variables in config.env
Click here for more info on config.
- There are two methods to build and run the docker:
- Using official docker commands.
- Using docker-compose. (Recommended)
- Start Docker daemon (SKIP if already running, mostly you don't need to do this):
sudo dockerd
- Build Docker image:
sudo docker build . -t wzmlx
- Run the image:
sudo docker run -p 80:80 -p 8080:8080 wzmlx
- To stop the running image:
sudo docker ps
sudo docker stop id
- Install docker-compose
sudo apt install docker-compose
- Build and run Docker image or to view current running image:
sudo docker-compose up
- After editing files with nano for example (nano start.sh):
sudo docker-compose up --build
- To stop the running image:
sudo docker-compose stop
- To run the image:
sudo docker-compose start
- To get latest log from already running image (after mounting the folder):
sudo docker-compose up
IMPORTANT NOTES:
- You should stop the running image before deleting the container and you should delete the container before the image.
- To delete the container (this will not affect on the image):
sudo docker container prune
- To delete the images:
sudo docker image prune -a
-
BOT_TOKEN - Get bot token from @BotFather
-
APP_ID - From my.telegram.org (or @UseTGXBot)
-
API_HASH - From my.telegram.org (or @UseTGXBot)
-
OWNER_ID - Your Telegram ID. Get from send /id command to @MissRose_bot
-
DATABASE_URL - MongoDB URL (Click here for more info on MongoDB URL.)
-
DEFAULT_RCLONE_PATH = "" Default Rclone Path from rclone config. Eg: "My_drive:"
-
RCLONE_CONF_PATH = "/usr/src/app/" Do not change this.
- alternate_resolution_selector: - To select the next quality. For example if this field is set to lowest and you choose the download quality as 720p and if 720p is not available in some episodes this option will trigger and download the next lowest quality episode.
- max_parallel_downloads: Max parallel downloads. Recommended value is 1.
start - Start the bot
drama - Search for drama or movie
usetting - Settings for caption and thumbnail
mirrordrama - To upload each episode to rclone drive
zipmirrordrama - Zip and upload series or downloaded episodes to rclone drive.
shell - Execcute bash commands
- Go to
https://mongodb.com/
and sign-up. - Create Shared Cluster.
- Press on
Database
underDeployment
Header, your created cluster will be there. - Press on connect, choose
Allow Acces From Anywhere
and press onAdd IP Address
without editing the ip, then create user. - After creating user press on
Choose a connection
, then press onConnect your application
. ChooseDriver
python andversion
3.6 or later. - Copy your
connection string
and replace<password>
with the password of your user, then press close.
|Prudhvi-pln
|Pyrogram
|
|Creator of UDB|Telegram Bot Framework|