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

Torrents available to stream in browser #1531

Closed
jaruba opened this issue Oct 25, 2018 · 8 comments
Closed

Torrents available to stream in browser #1531

jaruba opened this issue Oct 25, 2018 · 8 comments

Comments

@jaruba
Copy link

@jaruba jaruba commented Oct 25, 2018

I ran across a site that uses webtorrent and seems to keep track of what torrents are available to stream in the browser at all times.

How would one keep track of all the torrents that have the required peers to stream in the browser with webtorrent? I'm guessing it's based on communication with webtorrent specific trackers? If so, there's still the question of how it can be done.

@jaruba

This comment has been minimized.

Copy link
Author

@jaruba jaruba commented Oct 25, 2018

I do realize that only mp4 files would work in the browser, i'm not worried about filtering torrents by mp4 specific files as much as i don't understand how one could request a list of torrents that have web peers and the number of their peers at any given time.

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Oct 25, 2018

Hey @jaruba,

If you run the tracker you can see all infoHashes which use your tracker and how many peers are leeching / seeding the torrent, this alone should be enough information to decide if there is sufficient peers in order to stream the file.

Writing a simple API around the tracker, which either clients can access or the web server could use to determine which torrents to display, would be the easiest way to achieve this.

As this is a question and not a issue, I'm going to close this but I'm happy to help and continue the conversation.

@SilentBot1 SilentBot1 closed this Oct 25, 2018
@jaruba

This comment has been minimized.

Copy link
Author

@jaruba jaruba commented Oct 25, 2018

I could obviously just run my own tracker and hope that people would use it, as if it's not used i wouldn't have any torrents on it to speak of.

I could also interogate webtorrent trackers on a per infohash basis. But this site that i'm talking about, when you go on it, it only shows media that currently has web seeds available and it seems to load this data in 2-3 seconds, on request for the user.

This made me think it literally requests a list of torrents with web seeds from the webtorrent trackers, which afaik shouldn't be possible.

I guess it would also be possible to just filter torrents based on mp4 files, and request data on each from trackers, periodically. I just imagined this website was doing some magical call on the trackers for said data. (one call, as opposed to a per infohash call)

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Oct 25, 2018

@jaruba do you have a link to said website (assuming its legal) so I could get a better understanding of it?

By the sounds of it you're saying they're indexing all WebTorrents and displaying those which still have peers seeding which sounds like an impossible task without running their own tracker. Are you sure the website isn't hosting the content themselves rather than indexing public torrents?

@jaruba

This comment has been minimized.

Copy link
Author

@jaruba jaruba commented Oct 25, 2018

I sent you an email (to your public email address shown on your github profile) with the link

@jaruba

This comment has been minimized.

Copy link
Author

@jaruba jaruba commented Oct 25, 2018

Are you sure the website isn't hosting the content themselves rather than indexing public torrents?

I'm sure their using public torrents and webtorrent, yes.

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Oct 25, 2018

@jaruba after looking at it I can only assume it scrapes torrent indexers, then scrapes the main WebTorrent trackers to check if there are any WebTorrent peers, if so, stores the infohash and periodically checks for peers.

@jaruba

This comment has been minimized.

Copy link
Author

@jaruba jaruba commented Oct 25, 2018

yeah, that's what i was afraid of too, it seems like overly complicated logic, but i don't really see any other possible way for them to do this either

@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.