yash-dk / TorToolkit-Telegram

Most versatile Telegram torrent, direct-link, mega, and youtube-dl bot. Uploads to various cloud storage like Gdrive, Mega, Telegram, etc.
GNU General Public License v3.0
674 stars 1.56k forks source link

[Feature Request] Ability to Split Torrent in RAR parts #85

Open a0v0 opened 3 years ago

a0v0 commented 3 years ago

please add the ability to split torrents in RAR parts

---- sample linux command in case ---- mode needed : rar (apt-get install rar) command : rar a -m -vm "" "<folder/file_to_archive>"

Glossary:

  1. leve_of_compression 0 - just store 1 - fair amount of compression 2 - a little bit more compression 3 - extreme compression

  2. name_of_rar_file - name of the rar file with absolute path where it will be stored

  3. folder/file_to_archive - path of folder or file to be archived

  4. size_in_MB - 500 if the file need to be splitted in 500mb parts

Say I have 15 GB file. If I set -v5120m then it will split the rar in three parts 5 GB file. Command will be : rar a -m0 -v5120m "save/to/exampleRAR" "/folder/to/be/archived" python equivalent : subprocess.call(['rar a -m0 -v5120m "save/to/exampleRAR" "/folder/to/be/archived"'])

Thanks in advance..๐Ÿ™

Expected Features:

yash-dk commented 3 years ago

command : rar a -m -vm "" "<folder/file_to_archive>"

By this you mean the linux command ryt? not the TG command...

Sounds good...its easy to add just need to clarify this.

a0v0 commented 3 years ago

command : rar a -m -vm "" "<folder/file_to_archive>"

By this you mean the linux command ryt? not the TG command...

Sounds good...its easy to add just need to clarify this.

rar a -m -vm "" "<folder/file_to_archive>"

this is linux command. we can send TG command to fill in the variables. Will this be added in next update?

yash-dk commented 3 years ago

this is linux command. we can send TG command to fill in the variables. Will this be added in next update?

Ohkk....

Yepp in next update.. most issue from GitHub will be implemented.

a0v0 commented 3 years ago

Readme says new repo will come for heroku. Is that right?

a0v0 commented 3 years ago

@yash-dk Done?

yash-dk commented 3 years ago

will be.... added currently I have research work so development is slowed...

a0v0 commented 3 years ago

๐Ÿ˜”

a0v0 commented 3 years ago

when Yash?

yash-dk commented 3 years ago

will be added started the work

a0v0 commented 3 years ago

It's a new week i hope it's done ๐Ÿ™

a0v0 commented 3 years ago

@yash-dk please add it now

yash-dk commented 3 years ago

Adjust the cmd as pleased here and here as for the split size use TG_UP_LIMIT.

If any improvement in this feature comment here

a0v0 commented 3 years ago

chrome_XnAnMxL1Gc

Files getting uploaded as it is they are not adding to archive

a0v0 commented 3 years ago

torlog.txt

here are the logs @yash-dk

yash-dk commented 3 years ago

reviewed it should if fine now.

paprika10 commented 3 years ago

@yash-dk make TG_UPLOAD_LIMIT in MB rather than in bytes

a0v0 commented 3 years ago

@yash-dk still not working https://github.com/yash-dk/TorToolkit-Telegram/blob/b4854aac9d3f0c1fb4384ffb019c32faa5fe6629/tortoolkit/utils/zip7_utils.py#L84 this line is never executed. Only else part after this block is executed.

yash-dk commented 3 years ago

@yash-dk still not working https://github.com/yash-dk/TorToolkit-Telegram/blob/b4854aac9d3f0c1fb4384ffb019c32faa5fe6629/tortoolkit/utils/zip7_utils.py#L84

this line is never executed. Only else part after this block is executed.

The splitting is only required for telegram upload and will work only there. Rclone uploads are not supported.

yash-dk commented 3 years ago

@yash-dk make TG_UPLOAD_LIMIT in MB rather than in bytes

just write like this:- MBs * 1024 *1024

a0v0 commented 3 years ago

@yash-dk still not working https://github.com/yash-dk/TorToolkit-Telegram/blob/b4854aac9d3f0c1fb4384ffb019c32faa5fe6629/tortoolkit/utils/zip7_utils.py#L84

this line is never executed. Only else part after this block is executed.

The splitting is only required for telegram upload and will work only there. Rclone uploads are not supported.

but uploading to telegram is useless. Can you make it work to upload in Google Drive

a0v0 commented 3 years ago

I tried to upload to telegram with RAR_SPLIT enabled but error says ZIP Failed Fallback to Normal. RAR split feature is not working at all. @yash-dk Telegram_q2c9XE8 Koe Telegram_hWva1PMFxF chrome_2Rx0nayva7

a0v0 commented 3 years ago

Fixed?

a0v0 commented 3 years ago

@yash-dk Rar is a non free utility. You have added it but when I hit rar using /exec rar this error occurred.

QUERY: Command: rar PID: 58

stderr: /bin/sh: 1: rar: not found

Output: No Output

run these to commands to install rar module

sudo apt-add-repository non-free -y sudo apt-get install rar

a0v0 commented 3 years ago

bro where are you?