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

Support Peertube #147

Open
jibe-b opened this issue Oct 15, 2020 · 7 comments
Open

Support Peertube #147

jibe-b opened this issue Oct 15, 2020 · 7 comments
Labels
backend Everything for https://github.com/CaptainFact/captain-fact-api complexity > complex Complex tasks, that require more than tree days to complete feature New features frontend Everything for https://github.com/CaptainFact/captain-fact-frontend need-specs This require additional specs before implementing

Comments

@jibe-b
Copy link

jibe-b commented Oct 15, 2020

User story

PeerTube is a decentralized videos platform. Having CaptainFacts supporting PeerTube instances would be a plus.

Best solution for this problem

The code of PeerTube is free and open source which should ease the path until the support.

The challenge is that a video does not necessarily have one unique URL. It may be replicated in more than one instance. Hence a need to curate URLs of a unique video.

This feature is not urgent ;)

@Miragide
Copy link
Contributor

Good point, thank @jibe-b
Do you want talk about this with PeerTube community to get help?

@jibe-b
Copy link
Author

jibe-b commented Oct 15, 2020

I will!

@rigelk
Copy link

rigelk commented Oct 15, 2020

Rather that trying to curate URLs, using the embed library allows to decouple your implementation from the evolving PeerTube platform, so I'd advise you first try that.

@jibe-b
Copy link
Author

jibe-b commented Oct 16, 2020

Thank you @rigelk for answering so quickly, as always with PeerTube :)
@Miragide, do you get the point (I must say I would have to dive in PeerTube's architecture to get @rigelk's point fully)

@CaptainFact CaptainFact deleted a comment from open-collective-bot bot Apr 13, 2021
@Betree Betree added backend Everything for https://github.com/CaptainFact/captain-fact-api complexity > complex Complex tasks, that require more than tree days to complete feature New features frontend Everything for https://github.com/CaptainFact/captain-fact-frontend need-specs This require additional specs before implementing labels Apr 13, 2021
@Betree
Copy link
Member

Betree commented Apr 13, 2021

The main challenge for this is that we can't detect that a video is from Peertube just by looking at its URL. There can also be many Peertube links for the same video, which doesn't work well with our current data model.

That being said, I'd love to see this happen one day.

@Chocobozzz
Copy link

Hello,

You can detect a peertube instance using the nodeinfo endpoint: https://peertube2.cpy.re/nodeinfo/2.0.json

Then, the origin video URL can be found using the REST API: https://peertube2.cpy.re/api/v1/videos/d6210593-dbb8-49a0-b4a8-72f03fc550eb (.account.host for example)

@Betree
Copy link
Member

Betree commented Apr 14, 2021

Nice, thank you @Chocobozzz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Everything for https://github.com/CaptainFact/captain-fact-api complexity > complex Complex tasks, that require more than tree days to complete feature New features frontend Everything for https://github.com/CaptainFact/captain-fact-frontend need-specs This require additional specs before implementing
Projects
None yet
Development

No branches or pull requests

5 participants