TorToolkit-Telegram icon indicating copy to clipboard operation
TorToolkit-Telegram copied to clipboard

[Feature Request] Ability to Split Torrent in RAR parts

Open a0v0 opened this issue 3 years ago • 24 comments

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<leve_of_compression> -v<size_in_MB>m "<name_of_rar_file>" "<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:

  • [ ] Set split size in (MBs) on the fly or through menu
  • [ ] Upload splitted archives to Cloud Drives
  • [ ] change USE_RAR_SPLIT through menu
  • [ ] similar to multiup.org upload from torrent feature

a0v0 avatar Jul 29 '21 12:07 a0v0

command : rar a -m<leve_of_compression> -v<size_in_MB>m "<name_of_rar_file>" "<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.

yash-dk avatar Jul 30 '21 10:07 yash-dk

command : rar a -m<leve_of_compression> -v<size_in_MB>m "<name_of_rar_file>" "<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<leve_of_compression> -v<size_in_MB>m "<name_of_rar_file>" "<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?

a0v0 avatar Jul 30 '21 14:07 a0v0

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.

yash-dk avatar Jul 30 '21 14:07 yash-dk

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

a0v0 avatar Jul 30 '21 14:07 a0v0

@yash-dk Done?

a0v0 avatar Aug 25 '21 07:08 a0v0

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

yash-dk avatar Aug 25 '21 15:08 yash-dk

😔

a0v0 avatar Aug 30 '21 09:08 a0v0

when Yash?

a0v0 avatar Sep 07 '21 11:09 a0v0

will be added started the work

yash-dk avatar Sep 07 '21 11:09 yash-dk

It's a new week i hope it's done 🙏

a0v0 avatar Sep 13 '21 11:09 a0v0

@yash-dk please add it now

a0v0 avatar Sep 16 '21 11:09 a0v0

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

yash-dk avatar Sep 20 '21 05:09 yash-dk

chrome_XnAnMxL1Gc

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

a0v0 avatar Sep 21 '21 08:09 a0v0

torlog.txt

here are the logs @yash-dk

a0v0 avatar Sep 21 '21 08:09 a0v0

reviewed it should if fine now.

yash-dk avatar Sep 21 '21 20:09 yash-dk

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

paprika10 avatar Sep 22 '21 02:09 paprika10

@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.

a0v0 avatar Sep 22 '21 06:09 a0v0

@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 avatar Sep 22 '21 06:09 yash-dk

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

just write like this:- MBs * 1024 *1024

yash-dk avatar Sep 22 '21 06:09 yash-dk

@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 avatar Sep 22 '21 06:09 a0v0

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 avatar Sep 22 '21 06:09 a0v0

Fixed?

a0v0 avatar Sep 25 '21 13:09 a0v0

@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 avatar Sep 27 '21 02:09 a0v0

bro where are you?

a0v0 avatar Oct 07 '21 05:10 a0v0