Giter Club home page Giter Club logo

tortoolkit-telegram's People

Contributors

dependabot[bot] avatar dishapatel010 avatar mountlin avatar theray1s avatar weebzoneindia avatar yash-dk avatar yourtulloh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tortoolkit-telegram's Issues

#bug for rar

TypeError: argument of type 'NoneType' is not iterable

Issue On cancelling big files

2021-01-17 23:34:53,499 ERROR MainThread telethon.client.updates Unhandled exception on callback_handler_canc Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/telethon/client/updates.py", line 446, in _dispatch_update await callback(event) File "/torapp/tortoolkit/core/HandleManager.py", line 402, in callback_handler_canc if data[2] == str(e.sender_id): IndexError: list index out of range

This is the error on trying to cancel this torrent

feature request : live output

right now when we you use /exec commnd, it runs, but you don't see the process. just the result.
is it possible to add live output too ?

thanks.

[Feature Request] Ability to download comics from various sites

Can be achieved through comic-dl or any other.

Features needed:

  1. format selection
  2. single chapter or entire comic prompt through buttons
  3. any other feature you love

Refer:
https://github.com/Xonshiz/comic-dl

Script I made to download comics with features like range of pages selection, download whole comics or just single issue but don't to know how to integrate it with bot ( πŸ˜— not interested in learning):
https://colab.research.google.com/drive/11lynRO3ZLRKvEif4bq3KD8BlcOWaH-f1?usp=sharing

#Error Uploading Video due to caption Too Long for all command /ytdl /leech, /instadl

When downloading URL from sites support using /ytdl command and URL from any supported sites containing too long text (name), get this error

2021-08-10 03:38:42,927 INFO MainThread root Uplaoding the directory:- /torapp/userdata/16285469091257668 2021-08-10 03:39:38,511 ERROR MainThread tortoolkit.core.ttk_ytdl ERROR: unable to open for writing: [Errno 36] File name too long: '/torapp/userdata/1628546972955728/#Tokio2020 en EspaΓ±ol - Β‘En tan solo 6⃣ horas viviremos la #CeremoniaDeClausura de #Tokio2020!πŸ‡―πŸ‡΅ Revive el inolvidable cierre de los @juegosolimpicos #Rio2016. πŸŽ† Hoy serΓ‘ el turno de @Paris2024. πŸ‡«πŸ‡· #UnitedByEmotion #StrongerTogether.mp4.part

Btw, as an additional "issue" to download url with credentials, it is missing netrc support

[Feature request] Gdrive clone, search files in Gdrive, mediainfo & speedtest

Pls add Gdrive clone and search files from Gdrive , mediainfo and speedtest.
Reference :-

  1. https://github.com/breakdowns/slam-mirrorbot/blob/master/bot/modules/clone.py
  2. (This python module only search in the download folder of Gdrive) https://github.com/breakdowns/slam-mirrorbot/blob/master/bot/modules/list.py . Would appreciate if you use https://github.com/SVR666/SearchX-bot or https://github.com/iamLiquidX/SearchX which can search in all over the Gdrive including all teamdrives
  1. (it only supports telegram media file) https://github.com/breakdowns/slam-mirrorbot/blob/master/bot/modules/mediainfo.py
    I don't know repo of https://telegram.dog/MediaInfoHEXbot which also gives mediainfo, screenshots & trimed video from the download links of files sent, but it is best.
  2. https://github.com/breakdowns/slam-mirrorbot/blob/master/bot/modules/speedtest.py

[Feature Request] Ability to Split Torrent in RAR parts

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

Folder Upload Option.

How to upload files to telegram ?
i have downloaded files with
/exec wget

how to upload them to telegram now ?

thanks.

#bugs List For alpha

many more to come

Extraction Not Working For Some Archives

Extraction Doesn't Work For 10GB Above Tested On 7 Different Links

Error Log:

2021-02-23T11:02:36.111133+00:00 app[web.1]: File "/torapp/tortoolkit/core/HandleManager.py", line 231, in handle_leech_command
2021-02-23T11:02:36.111133+00:00 app[web.1]: await check_link(e,rclone, is_zip, is_ext)
2021-02-23T11:02:36.111133+00:00 app[web.1]: File "/torapp/tortoolkit/functions/Leech_Module.py", line 248, in check_link
2021-02-23T11:02:36.111134+00:00 app[web.1]: newpath = await handle_ext_zip(path, rmsg, omess)
2021-02-23T11:02:36.111134+00:00 app[web.1]: File "/torapp/tortoolkit/functions/Leech_Module.py", line 377, in handle_ext_zip
2021-02-23T11:02:36.111134+00:00 app[web.1]: if "Wrong Password" in ext_path:
2021-02-23T11:02:36.111134+00:00 app[web.1]: TypeError: argument of type 'bool' is not iterable

[Feature Request] PixelDrain API

Hi there, I was wondering if you can add this API to your bot, this is an amazing platform for sharing stuff and I would really appreciate if you can add it. For you I think it will be pretty straightforward considering how you added zippyshare and mediafire.

https://pixeldrain.com/api

please have a look.

[Feature Request] add torrent search option

This is no doubt the most versatile repo for downloading contents through telegram, it would be splendid if you could add torrent search option within the bot itself, like 1337x.py

Thank you for your consideration

😐😐😐😐😐

[2021-03-01 13:02:13 +0000] [129284] [INFO] Starting gunicorn 20.0.4
[2021-03-01 13:02:13 +0000] [129284] [ERROR] Connection in use: ('0.0.0.0', 80)
[2021-03-01 13:02:13 +0000] [129284] [ERROR] Retrying in 1 second.
2021-03-01 13:02:13,414 INFO MainThread root Database created
2021-03-01 13:02:13,449 INFO MainThread telethon.crypto.aes cryptg detected, it will be used for encryption
2021-03-01 13:02:14,051 INFO MainThread pyrogram.crypto.aes Using TgCrypto
[2021-03-01 13:02:14 +0000] [129284] [ERROR] Connection in use: ('0.0.0.0', 80)
[2021-03-01 13:02:14 +0000] [129284] [ERROR] Retrying in 1 second.
2021-03-01 13:02:14,420 INFO MainThread root Telethon Client created.
Pyrogram v1.0.2, Copyright (C) 2017-2020 Dan https://github.com/delivrance
Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

2021-03-01 13:02:15,048 INFO MainThread root Started 100 HandlerTasks
2021-03-01 13:02:15,052 INFO MainThread root Pryogram Client created.
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ubuntu/TorToolkit-Telegram/tortoolkit/main.py", line 46, in
ttkbot.loop.run_until_complete(start_server_async(get_val("SERVPORT")))
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/ubuntu/TorToolkit-Telegram/tortoolkit/core/wserver.py", line 334, in start_server_async
await web.TCPSite(runner,"0.0.0.0",port).start()
File "/home/ubuntu/venv/lib/python3.8/site-packages/aiohttp/web_runner.py", line 100, in start
self._server = await loop.create_server( # type: ignore
File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 80): address already in use
(venv) root@ip-172-31-44-173:/home/ubuntu/TorToolkit-Telegram# [2021-03-01 13:02:15 +0000] [129284] [ERROR] Connection in use: ('0.0.0.0', 80)
[2021-03-01 13:02:15 +0000] [129284] [ERROR] Retrying in 1 second.
[2021-03-01 13:02:16 +0000] [129284] [ERROR] Connection in use: ('0.0.0.0', 80)
[2021-03-01 13:02:16 +0000] [129284] [ERROR] Retrying in 1 second.
(venv) root@ip-172-31-44-173:/home/ubuntu/TorToolkit-Telegram# [2021-03-01 13:02:17 +0000] [129284] [ERROR] Connection in use: ('0.0.0.0', 80)
[2021-03-01 13:02:17 +0000] [129284] [ERROR] Retrying in 1 second.
[2021-03-01 13:02:18 +0000] [129284] [ERROR] Can't connect to ('0.0.0.0', 80)

[FEATURE REQUEST] Append predefined trackers from tracker list in Torrent/Magnet Downloads to speed things up

To put this simply,
when a user provides a magnet link with 3/4 trackers, the files are downloaded slowly.

But if the user would supply more live trackers appended onto the magnet link, the download would be faster as more tracker means more active peers connected.

Any BitTorrent client GUI can add separate trackers manually, and Aria2 can also load extra trackers through an extra tracker list file.

Maybe same result can be achieved through qbittorrent(-nox) api.

I don't know how to, but it can surely be done.

Some suggestions for overall improvements in User Experience

  1. If Leech is disabled in bot settings , while trying to mirror a url/magnet ,the "To Telegram" button could very well be just absent altogether . There is no need to display it taking unnecessary screen space .
  2. Add ability to mirror a magnet or URL through same message . Its more convenient and morever gives alternative option for starting process . Currently it only works if replied to URL or magnet , the ability to start the process with same message command would be better . eg /leech URL/magnet , /ytdl URL , /pytdl URL , /instadl URL .So Eventually it will work with both replying ( current ) as well as same message command
  3. If Multiple remotes are present in rclone config file and user wants to change default config , one would always have to open settings , change default and save it . A lot better implementation is to just display the remotes as button during starting process . eg . If someone has remotes named movie and anime in his rclone config , while starting mirroring instead of the button "To drive" , there could be 2 butons namely "Anime" & "Movie"
  4. If there are multiple process going on , its lot better to automatically merge them . Eg A mirroring process is already active and after some chats another mirror process is started ,so the original process gets lost in the mix above . Like lizzy mirror bot , you can make the older mirroring process status ( if existing ) to get merged with the newer one and have buttons to cancel each of them one below the other

Database choice?

Why not MySQL? It can be deployed with minimal configuration when compared to postgresql.
There's even a built-in module sqlite for accessing within python

RCLONE_BASE_DIR problem

I change the RCLONE_BASE_DIR:RCLONE_BASE_DIR = "Gdrive"
and docker-compose up again.
but the files still upload to GOOGLE DRIVE root folder
image

[Feature Request] Youtube-dl add multiple links

Ability to download multiple links from youtube-dl supported site.

Say I want to to download 10 videos in single command.
Example command

/ytdl link1,link2,link3 and so on
And it will sequentiality download one by one or multiple at once

Also when is Service Account support coming? @yash-dk

YTDL Button πŸ”˜ Not working

While using the ytdl button for the Quality Selection and when we try to back and change quality it doesn't go back....

So please fix it...

When will be heroku repo be available?

Hi there,

Just wanted to know when heroku repo be available and also if it won't be available at all, are we allowed to modify it according to our own way to make it usable on heroku?

Heroku support

Hello dev. How are you? Can you pls add support of heroku or workflow

[Enhancement] Separate Var For Admin/Owner

I say this because there's no control for downloads by owner of bot if used by other people.. Can't cancel download unless the other individual cancels it themselves.. Owner should have total control ready at will

Torrent Uploading Failed :/

2021-01-31 09:15:22,800 INFO MainThread tortoolkit.functions.QBittorrentWrap Trying to login in qBittorrent using creds localhost 8090 admin adminadmin
2021-01-31 09:15:22,905 INFO MainThread tortoolkit.functions.QBittorrentWrap Client connected successfully to the torrent server. :)
2021-01-31 09:15:23,107 INFO MainThread tortoolkit.functions.QBittorrentWrap True
2021-01-31 09:15:23,107 INFO MainThread tortoolkit.functions.QBittorrentWrap Trying to login in qBittorrent using creds localhost 8090 admin adminadmin
2021-01-31 09:15:23,217 INFO MainThread tortoolkit.functions.QBittorrentWrap Client connected successfully to the torrent server. :)
2021-01-31 09:15:23,497 ERROR MainThread telethon.client.updates Unhandled exception on handle_leech_command
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/telethon/client/updates.py", line 446, in _dispatch_update
await callback(event)
File "/torapp/tortoolkit/core/HandleManager.py", line 236, in handle_leech_command
await check_link(e,rclone, is_zip, is_ext)
File "/torapp/tortoolkit/functions/Leech_Module.py", line 134, in check_link
path = await QBittorrentWrap.register_torrent(mgt,rmess,omess,True)
File "/torapp/tortoolkit/functions/QBittorrentWrap.py", line 375, in register_torrent
if torrent.progress == 1:
AttributeError: 'bool' object has no attribute 'progress'
2021-01-31 09:15:27,620 INFO MainThread tortoolkit.functions.QBittorrentWrap Trying to login in qBittorrent using creds localhost 8090 admin adminadmin
2021-01-31 09:15:27,775 INFO MainThread tortoolkit.functions.QBittorrentWrap Client connected successfully to the torrent server. :)

YOUTUBE DOWNLOAD FIX AND INSTAGRAM FIX

There's been an issue being noticed on downloading some YouTube videos, even though I was able to pull out the same video from online downloader YouTube website, the Bot gave back the following reply.

Invalid link provided.
ERROR: Video unavailable
This video is not available

Similarly a same issue was noticed in playlist also

Following error was seen.

Cannot load the videos from this playlist ensure that the playlist is not 'My Mix or Mix'. It shuold be a public or unlisted youtube playlist.

Though the playlist is available viewing on public it too have error.

Now for the part of instadl.

It doesn't show a response after fetching content, nor any progresss, nor a reply whether the content is available to download.

As for a sample I'll share one YouTube link that the error was seen.

https://youtu.be/ObjkuJYoOBk

And the playlist link

https://youtube.com/playlist?list=PLwLSw1_eDZl2XdtLhB9NG2Ch050jWFm9G

Waiting for an enhancement on it, Your project is much appreciated and helpful.
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.