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
673 stars 1.57k forks source link

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

Closed rokibhasansagar closed 2 years ago

rokibhasansagar commented 3 years ago

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.

noobalphamax commented 3 years ago

Yes, same suggestion. In the desktop client adding extra set of trackers and updating list enhances the speed and was very much useful for some slow torrents which are sometimes the only source available. This feature request will be a better thing to implement.

Hats off to your wonderful work, integrating maximum things.

rokibhasansagar commented 2 years ago

I see it's not exactly implemented in "Alpha" till I'm writing this.

I got a guide on How to implement it, but you know better about How to code this.

There's a reference about adding extra trackers once a torrent is loaded through qbittorrentapi.torrents.TorrentsAPIMixIn class in "qbittorrent-api" pip package.

torrents_add_trackers(torrent_hash=None, urls=None, **kwargs)

You can read it here: https://qbittorrent-api.readthedocs.io/en/latest/apidoc/torrents.html#qbittorrentapi.torrents.TorrentsAPIMixIn.torrents_add_trackers

And the extra torrent tracker parameter, namely urls might be in tracker01&tr=tracker02&tr=tracker03 format, I don't know for sure.

There are two frequently updated (two newline delimited) tracker list available to use here (after proper single-line formatting).

https://ngosang.github.io/trackerslist/trackers_best.txt https://newtrackon.com/api/stable

I'm hoping to see this feature properly added when all the bug-fix are done in next stable release. 😃

afjal-sharif commented 2 years ago

Its already added on slam mirror bot....

On Thu, Aug 26, 2021, 5:57 PM Rokib Hasan Sagar @.***> wrote:

I see it's not exactly implemented in "Alpha" till I'm writing this.

I got a guide on How to implement it, but you know better about How to code this.

There's a reference about adding extra trackers once a torrent is loaded through qbittorrentapi.torrents.TorrentsAPIMixIn class in "qbittorrent-api" pip package.

torrents_add_trackers(torrent_hash=None, urls=None, **kwargs)

You can read it here:

https://qbittorrent-api.readthedocs.io/en/latest/apidoc/torrents.html#qbittorrentapi.torrents.TorrentsAPIMixIn.torrents_add_trackers

And the extra torrent tracker parameter, namely urls might be in tracker01&tr=tracker02&tr=tracker03 format, I don't know for sure.

There are two frequently updated (two newline delimited) tracker list available to use here (after proper single-line formatting).

https://ngosang.github.io/trackerslist/trackers_best.txt https://newtrackon.com/api/stable

I'm hoping to see this feature properly added when all the bug-fix are done in next stable release. 😃

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yash-dk/TorToolkit-Telegram/issues/76#issuecomment-906342880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFWAJOHMCUQHU7KWVXCHRTT6YTZLANCNFSM46LKAY4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

rokibhasansagar commented 2 years ago

Its already added on slam mirror bot....

I know, man! As TTK downloads Torrents, this feature is crucial for faster downloads. Otherwise, users will use same old Mirror-Bots 😞

afjal-sharif commented 2 years ago

Right...i think dev will implement it on next update... 👌

On Thu, Aug 26, 2021, 6:09 PM Rokib Hasan Sagar @.***> wrote:

Its already added on slam mirror bot....

I know, man! As TTK downloads Torrents, this feature is crucial for faster downloads. Otherwise, users will use same old Mirror-Bots 😞

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yash-dk/TorToolkit-Telegram/issues/76#issuecomment-906351135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFWAJORLANMY7L5EA6ZHVDT6YVHLANCNFSM46LKAY4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

yash-dk commented 2 years ago

Support for custom trackers is added you can change the source of the trackers from ExecVars if you wish to and Enable/Disable adding custom trackers.