elgatito / plugin.video.elementum

Elementum add-on for Kodi. Development of this addon has been stopped!
http://elementum.surge.sh
MIT License
482 stars 159 forks source link

Why can't elementum paste magnet link to url download ? Please support it. #1070

Open i990049 opened 1 week ago

i990049 commented 1 week ago

I have to transfer the private tracker torrents through APP to my tv box every time.It seems brust doesn't works here.

antonsoroko commented 1 week ago

@i990049 it is hard to understand what you really mean - elementum supports magnet links, burst supports private trackers. when you write issue - you should elaborate what you mean. there is no sense to be greedy for words.

  1. you can add magnet link via "add torrent" in elementum WEB UI, open "Status" page in elementum main menu to see the URL Screenshot 2024-10-07 at 14-01-17 Elementum Web UI

  2. you can add magnet link via "add torrent" in elementum main menu (you can paste URL via some "Kodi remote app", i believe) Screenshot_20241007_140958

  3. if your private tracker not in burst - then you can add it to burst. thus you do not have manually add torrent. alternatively, you can ask in burst repository (in issues) to add your tracker - if it is a useful tracker (and without paid subscription and etc) - then someone maybe can add it. otherwise - you would need to add it yourself.

but you must know that if torrent is marked as private then it can't be shared via magnet link. usually private trackers use private torrent, thus they do not provide magnet links. but maybe your tracker is private, but their torrents are not private. you can see if torrent is private in some desktop bittorrent app.

i990049 commented 1 week ago

There is no paste button on win 10, how can I use elementum WEB UI on smart phone to win 10/stream TV box with the same WIFI? What do [A..M][N..] mean?Nexusphp sites have magnet links, I used to paste stream link from utorrent/Flud to VLC media player to stream/magnet links on TV box like this, does elementum can do this? http://pairing:C1B4E73687F0A1DD839EE39E1F6FC2FCAE627860@127.0.0.1:38486/proxy?sid=aeb98df9&file=1&token=C1B4E73687F0A1DD839EE39E1F6FC2FCAE627860&pairing=C1B4E73687F0A1DD839EE39E1F6FC2FCAE627860&service=STREAMING Now I have to transfer PT torrent files by sendanywhere APP from smart phone to TV box every time to stream video on kodi elementum, It's inconvenient. How can I open elementum WEB UI on smart phone?I have PT acount and already enter user name and password. I thought Burst can use PT acount to search video just like public track, but it didn't, if elementum can't why it requires name and password? I noticed elementum peer id changed from -GT0001- to -LT1xxx-, what's the peer id of elementum 0.1.105? it will be acceptable by more PT and BT clients. 屏幕截图(293) 屏幕截图(291) 屏幕截图(292)

elgatito commented 1 week ago

@i990049 Elementum does not have own UI controls, it is controlled by Kodi (and you cannot change it). Pasting is part of Kodi, as well. You can use Yatse android app to send links to Kodi. I think it will automatically send torrents to Elementum in that case.

i990049 commented 1 week ago

What do [A..M][N..] mean in the second screenshot? Why burst require to enter the user name and pastword of private tracker?if it can't search and RSS then for what?what does 0.1.106 update?

elgatito commented 1 week ago

What do [A..M][N..] mean in the second screenshot?

List of all the tracker websites that Burst supports.

Why burst require to enter the user name and pastword of private tracker?

To search on private tracker (or to download a torrent) - you need to authorize yourself, that is why you need to put your credentials.

if it can't search and RSS then for what?

To search for specific torrent file for specific Movie/Episode. Elementum is not torrent-centric. It is not about tracking torrent updates or new torrents. There are better tools for that.

i990049 commented 1 week ago

how to search for specific torrent file for specific Movie/Episode of private tracker on elementum?

antonsoroko commented 1 week ago

@i990049 1.

how can I use elementum WEB UI on smart phone to win 10/stream TV box with the same WIFI?

have you tried to carefully read what i wrote above???

you can add magnet link via "add torrent" in elementum WEB UI, open "Status" page in elementum main menu to see the URL

open "Status" page in elementum main menu to see the URL of Web UI, then you can open that URL on your phone in web browser. then you can click "add torrent" and add magnet. like on screenshot that i made specifically for you. obviously your devices must be in the same network (same Wi-fi, for example). URL will look like http://192.168.0.100:65220/web/

OR

as said above you can use any "remote" for Kodi to paste text, like https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree or you can find some other app in internet.

but i think for your use case elementum's web ui is more convenient. you can find screenshot of web ui on main page of repo. https://raw.githubusercontent.com/elgatito/plugin.video.elementum/master/resources/screenshots/webui.png

  1. how to search for specific torrent file for specific Movie/Episode of private tracker on elementum?

why do you need a specific torrent? looks like you need just a bittorrent client.

elementum is for streaming. it was made to skip the step of manual searching of torrent file. elementum's users search specific video, not specific torrent. (but of course, you can download torrents via elementum without watching them.)

steps: you enable any private tracker that you are registered in, you enter your username/password for that tracker. or just enable any public tracker.

then you search for movie (in movie menu - on your 3rd screenshot it is a 1st line), or you open list of trending movies. then you open movie. burst will search for that movie on enabled trackers and show you all torrents that were found (based on conditions that you defined in burst settings, like quality and rip types). then you select torrent and watch it.

BUT, if you really need to find the specific torrent - use "search" item in elementum main menu and type name of that torrent. on your screenshot 3 it is 3rd line.

3.

what does 0.1.106 update?

open "Changelog" in menu. on your screenshot 3 it is 8rd line. it shows content of this file - https://github.com/elgatito/plugin.video.elementum/blob/master/whatsnew.txt

antonsoroko commented 1 week ago

@i990049

4.

I noticed elementum peer id changed from -GT0001- to -LT1xxx-, what's the peer id of elementum 0.1.105?

since 0.1.104 it is "-LT1100-" (libttorrent ID, because elementum uses libttorrent library) https://github.com/elgatito/elementum/blob/v0.1.104/util/ident/ident.go#L50 before 0.1.104 it was "-GT0001-" (leftover from very old times when elementum used "anacrolix/torrent" library) https://github.com/elgatito/elementum/blob/v0.1.103/util/ident/ident.go#L50 https://github.com/anacrolix/torrent/blob/master/version/version.go#L15

it will be acceptable by more PT and BT clients.

what do you mean? please paraphrase. and please do not use uncommon abbreviations. i think libtorrent ID is much more common (thus more "acceptable") than "anacrolix/torrent" ID.

5.

I have PT acount and already enter user name and password. I thought Burst can use PT acount to search video just like public track, but it didn't

again, to use specific "private tracker" you must enable it in burst. if tracker is not supported - either add it to burst youself (you need to know some HTML for that) or create issue in burst repo and ask to add it. i already described that in details in my first message.

if tracker is already in burst but it does not work - then either a. create issue in burst repo b. fix appropriate code (maybe URL was changed or HTML page layout was changed) and make PR.

i990049 commented 1 week ago

https://github.com/anacrolix/torrent/discussions/891 https://github.com/Simple-Tracker/qBittorrent-ClientBlocker https://github.com/PBH-BTN/PeerBanHelper

anacrolix/torrent was banned by the soft list above just like another library‘Monotorrent’ such as Parrot BitTorrent Client.rtorrent and flud use libtorrent so they won't get banned.

https://github.com/alanmcgovern/monotorrent

Have you compared these codes libtorrent4j(JAVA)/Monotorrent(c#)/libtorrent? which is best?

https://github.com/aldenml/libtorrent4j

what code is elementum? JAVA or qt or c#? does it support BitTorrent 2.0 and WebTorrent?

https://github.com/proninyaroslav/libretorrent

antonsoroko commented 1 week ago

@i990049

anacrolix/torrent was banned by the soft

then it is good that we do not use anacrolix/torrent ID anymore. as i said we use libtorrent ID.

Have you compared these codes libtorrent4j(JAVA)/Monotorrent(c#)/libtorrent? which is best?

no.

what code is elementum?

golang. but for bittorrrent part elementum uses libtorrent (super famous c++ library).

does it support BitTorrent 2.0 and WebTorrent?

elementum uses libtorrent 1.1. search in internet if it supports what you need.

i990049 commented 1 week ago

Only libretorrent 2.x support BitTorrent 2.0 and WebTorrent, but most private trackers don't support libretorrent 2.x. So elementum only support BitTorrent 1.0, why not use the latest libretorrent 1.2.x? As webtorrent, you can try on watchsomuch with webtorrent desktop and elementum. I suggest elementum add this public tracker, it is the successor of 7tor.org.ALL private tracker made by Unit3d can use Elementum. https://watchsomuch.unblocked.how/ https://github.com/webtorrent/webtorrent-desktop

antonsoroko commented 1 week ago

@i990049

Only libretorrent 2.x

elementum uses libtorrent, not libretorrent.

why not use the latest libtorrent

because elementum is written in golang, and libtorrent is written in C++. those are 2 different languages. so elementum has to use intermediate layer - https://github.com/ElementumOrg/libtorrent-go written in SWIG. thus, to update to libtorrent 2 someone who knows c++ should update all "bindings" in libtorrent-go repo. and then update golang code accordingly. and this is a big amount of work. but there are some other SWIG binding in internet that can be used as reference for update. https://github.com/frostwire/frostwire-jlibtorrent/tree/master/swig https://github.com/aldenml/libtorrent4j/tree/master/swig

anyway, so far - nobody offered help in this direction.

As webtorrent,

I think there is some confusion. WebTorrent is just a torrent client. it is not a protocol (like BitTorrent, or BitTorrent 2.0). Elementum is a torrent client as well. So, elementum can't support WebTorrent, since it is not a protocol but an application. Same way that firefox can't support google chrome. i mean: your question about "does elementum support WebTorren?" is incorrect since it makes no sense.

ALL private tracker made by Unit3d can use Elementum.

Again, I think there is some confusion. Elementum is a torrent client. it is not about tracker. elementum knows nothing about tracker. it only cares about torrent file. Burst, on the contrary, interacts with trackers: login, search, download .torrent file.

Unless you wanted to say that Unit3d do not block elementum as client.

watchsomuch

Burst supports adding of "classic" trackers, that provide results like table with all the info (size, quality, number of seeders and etc), burst does not support "just a website with torrent files".

Unit3d

btw, if the tracker that you use is not in Burst and you do not know HTML to add it, you can install Jackett server (or you can find public jackett server) and then use this addon to connect elementum and jackett: https://github.com/fugkco/script.elementum.jackett

list of some trackers that jackett supports: https://hdvinnie.github.io/Private-Trackers-Spreadsheet/

i990049 commented 1 week ago

Sorry I didn't make it clear. https://github.com/arvidn/libtorrent/issues/223 WebRTC is a a protocol also refer as webtorrent protocol.

Webtorrent desktop is a bittorrent client both support BitTorrent 2.0 and WebTorrent protocol/WebRTC just like libretorrent and bigly BT. You can try it on stream site Watchsomuch. https://github.com/webtorrent/webtorrent-desktop

libtorrent 2.x is a protocol both support BitTorrent 2.0 and WebTorrent protocol/WebRTC

libtorrent 1.x doesn't support BitTorrent 2.0 and WebTorrent protocol/WebRTC the latest version is 1.2.x, elementum use 1.1.x.

Torrent files of private trackers such as Nexusphp/Unit3D/Gazelle don't support BitTorrent 2.0/Hybrid protocol. Nexusphp/Gazelle blocks Elementum as defaults, Unit3D allow Elementum as defaults. So if you want to stream torrent files from Private Trackers, sites made by Unit3d will be Ok, just let Elementum open the torrent file of Unit3D sites.

libretorrent the late version is 3.x is a BT client using libtorrent 2.x and based on jlibtorrent and libtorrent4j. If you want some help, take a look at it. Maybe it's helpful for Elementum to support BitTorrent 2.0 and WebTorrent protocol/WebRTC in the future.

antonsoroko commented 1 week ago

you are right, looks like libtorrent has support of WebTorrent https://github.com/arvidn/libtorrent/pull/4123 but for some reason it is only in master (test) branch, not in version 2. and even in master it is disabled by default.

https://github.com/arvidn/libtorrent/blob/1d644d19cb916261f651458aa5990b9fe1017299/CMakeLists.txt#L733 https://github.com/arvidn/libtorrent/blob/v2.0.10/CMakeLists.txt

but anyway, it is good to know about this feature. thank you.

i990049 commented 1 week ago

How about libretorrent 3.x using libtorrent 2.x and based on jlibtorrent and libtorrent4j? Does it enable WebRTC as default? Is the SWIG of it helpful to you? https://github.com/proninyaroslav/libretorrent

antonsoroko commented 1 week ago

libretorrent is a client (and only for Android, while Elementum supports many OS), not library. So it can't be used. And anyway to migrate to a new library - it would take a lot of work. Easier to to update to a new libtorrent version. But again, there are no volunteers to do that.

i990049 commented 1 week ago

Monotorrent is also library, take a look at it. https://github.com/alanmcgovern/monotorrent

antonsoroko commented 6 days ago

MonoTorrent, a bittorrent library for .NET

elementum is written in Golang. So it can't be used.

and as i said above:

And anyway to migrate to a new library - it would take a lot of work. Easier to to update to a new libtorrent version. But again, there are no volunteers to do that.

i990049 commented 6 days ago

This client is also a cross-platform BT client written in golang, better than ANT Downloader. I don't know if there is a relationship between anacrolix/gotorrent and them. https://github.com/GopeedLab/gopeed Some of the golang library hasn't been updated for more than a decade, and the latest is Rain. Hoping this can help you. https://github.com/cenkalti/rain

elgatito commented 6 days ago

@i990049

Hoping this can help you.

Sorry, help with what? Nobody will migrate to another library. Unless you want to contribute and make everything.

i990049 commented 6 days ago

just telling there's latest golang library, if you don't need library why you use libtorrent? libtorrent helps with what? using libtorrent meaning migrating and contributing to libtorrent?

antonsoroko commented 5 days ago

@i990049 everybody use libraries :-) they sped-up development dramatically.

libtorrent was always used by XBMCtorrent -> Pulsar -> Quasar -> Elementum. (parent -> child)

libtorrent does all the bittorrent things for elementum - download, upload, communication with tracker (i mean not web tracker like website, but bittorrent tracker server), DHT, etc.

elgatito also wrote custom c++ code that implements memory as download storage, libtorrent does not have such feature.

(although anacrolix/torrent supports memory as storage, thus at some point elgatito migrated from libtorrent to anacrolix/torrent, but download speed was low , thus elgatito migrated to back libtorrent.)

for elementum - updating libtorrent version means: update swig code, updating custom c++ code that implements memory as download storage, update golang code, test everything. it is possible, but nobody want to do this because current version of libtorrent works just fine for our use cases (e.g. when you download video from popular public trackers like piratebay or torrentglaxy or some private tracker like rutracker - they all support bittorent v1 protocol).

(migrating to new library means even more work - that's why elgatito said that nobody will do this.)

i hope this clarify things. because i think i have nothing more to add. i told you everything :-)