Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks
a0v0 opened this issue Jul 29, 2021 · 24 comments
Open
4 tasks

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

a0v0 opened this issue Jul 29, 2021 · 24 comments
Labels
enhancement New feature or request

Comments

@a0v0
Copy link

a0v0 commented Jul 29, 2021

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
@yash-dk
Copy link
Owner

yash-dk commented Jul 30, 2021

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 yash-dk added the enhancement New feature or request label Jul 30, 2021
@a0v0
Copy link
Author

a0v0 commented Jul 30, 2021

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?

@yash-dk
Copy link
Owner

yash-dk commented Jul 30, 2021

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
Copy link
Author

a0v0 commented Jul 30, 2021

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

@a0v0 a0v0 closed this as completed Aug 12, 2021
@a0v0 a0v0 reopened this Aug 12, 2021
@a0v0
Copy link
Author

a0v0 commented Aug 25, 2021

@yash-dk Done?

@yash-dk
Copy link
Owner

yash-dk commented Aug 25, 2021

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

@a0v0
Copy link
Author

a0v0 commented Aug 30, 2021

😔

@a0v0
Copy link
Author

a0v0 commented Sep 7, 2021

when Yash?

@yash-dk
Copy link
Owner

yash-dk commented Sep 7, 2021

will be added started the work

@a0v0
Copy link
Author

a0v0 commented Sep 13, 2021

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

@a0v0
Copy link
Author

a0v0 commented Sep 16, 2021

@yash-dk please add it now

@yash-dk
Copy link
Owner

yash-dk commented Sep 20, 2021

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
Copy link
Author

a0v0 commented Sep 21, 2021

chrome_XnAnMxL1Gc

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

@a0v0
Copy link
Author

a0v0 commented Sep 21, 2021

torlog.txt

here are the logs
@yash-dk

@yash-dk
Copy link
Owner

yash-dk commented Sep 21, 2021

reviewed it should if fine now.

@paprika10
Copy link

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

@a0v0
Copy link
Author

a0v0 commented Sep 22, 2021

@yash-dk still not working

if total_size > size and split:
this line is never executed. Only else part after this block is executed.

@yash-dk
Copy link
Owner

yash-dk commented Sep 22, 2021

@yash-dk still not working

if total_size > size and split:

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
Copy link
Owner

yash-dk commented Sep 22, 2021

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

just write like this:- MBs * 1024 *1024

@a0v0
Copy link
Author

a0v0 commented Sep 22, 2021

@yash-dk still not working

if total_size > size and split:

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
Copy link
Author

a0v0 commented Sep 22, 2021

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
Copy link
Author

a0v0 commented Sep 25, 2021

Fixed?

@a0v0
Copy link
Author

a0v0 commented Sep 27, 2021

@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
Copy link
Author

a0v0 commented Oct 7, 2021

bro where are you?

yashoswalyo added a commit to yashoswalyo/TorToolkitX that referenced this issue Nov 7, 2021
* Addition fixed from yash-dk#91

* Add custom tracker support from URL TRACKER_SOURCE var.. yash-dk#76

* for fixing yash-dk#86 (yash-dk#105)

* Fixes the file cleanup for rclone and tg up

* Alter the direct link gen format

* Change some stuff in Direct Link Generator

* Use Rar for splitting with USE_RAR_SPLIT var yash-dk#85

* Ignore abs path for rar

* Added sas zip support

* add support for loading SA accounts from zip in settings

* Fix the extract archive error

* Local extract and fix stuff in rclone upload

* ..

* Update deploy.yml

* Update deploy.yml

* Update deploy.yml

* Adding to RAR fixed

* Add the FORCE_SPLIT_UPLOAD and finalize USE_RAR_SPLIT

* Added /cleardata

* Remove the saftey margin in zipping

* Fix Handling some https cloudflare traffic error

* Add both formats to /leech reply and no reply

* created del directories

* Kangershub

Co-authored-by: YashDK <[email protected]>
Co-authored-by: Amirul Islam <[email protected]>
Co-authored-by: Shrimadhav U K <[email protected]>
Co-authored-by: nikhilesh-claysol <[email protected]>
Co-authored-by: Amirul Islam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants