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

[Feature Request] Alternative to Youtube Front End #108

Closed
dCo3lh0 opened this issue Jan 18, 2024 · 12 comments
Closed

[Feature Request] Alternative to Youtube Front End #108

dCo3lh0 opened this issue Jan 18, 2024 · 12 comments

Comments

@dCo3lh0
Copy link

dCo3lh0 commented Jan 18, 2024

I've been using LibreY for some days, but i don't use invidious, instead I've been using piped.video, its way better than invidious, I've looked around here in issues and not found someone asking this question, so I've made it.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 18, 2024

instead I've been using piped.video, its way better than invidious

I disagree. As far as I know, Invidious does not require JavaScript, whilst Piped does.

Anyhow, that does not matter. I'll look into supporting Piped later today.

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 18, 2024

Oh! i see, its true, piped requires javascript, i'm more saying about the system itself, i think as a user it works better, at least for me. I'm gonna look more into this.

@davidovski
Copy link

Since piped uses the same URL format as both youtube and invidious, you should be able to use it in the youtube frontend field in the settings: ie https://piped.video This should work the same way that you'd expect it to for invidious links or any other privacy frontend. Let me know if that works for you

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 18, 2024

Since piped uses the same URL format as both youtube and invidious, you should be able to use it in the youtube frontend field in the settings: ie https://piped.video This should work the same way that you'd expect it to for invidious links or any other privacy frontend. Let me know if that works for you

Yes, that's true, but I don't know - and that was what I wanted to test - if the search works without JavaScript, because to my knowledge, php-curl does not execute JavaScript.

@davidovski
Copy link

thats correct, php-curl simply fetches documents over http, without running any javascript. Using piped as a youtube frontend for redirection shouldn't make much difference, since the target pages will be opened on the user's client.

However as for getting video search results, I don't think there is much reason to be using piped over invidious. When #81 is implemented, it should offer a better solution than relying on a third-party frontend for search results.

@dCo3lh0
Copy link
Author

dCo3lh0 commented Jan 18, 2024

i've looked around and there is lighttube as well, but does use javascript too, so nothing too much different.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 18, 2024

thats correct, php-curl simply fetches documents over http, without running any javascript. Using piped as a youtube frontend for redirection shouldn't make much difference, since the target pages will be opened on the user's client.

Of course, I understand, but I was wondering if Piped uses JavaScript to make requests to get queries or not. That's what I wanted to check.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 18, 2024

It sort of works - using piped.video - but sadly I don't get the thumbnails back. That should be an easy fix, however.

And using the default with Invidious, we get the following back:
image

@ghost
Copy link

ghost commented Jan 19, 2024

It sort of works - using piped.video - but sadly I don't get the thumbnails back. That should be an easy fix, however.

And using the default with Invidious, we get the following back: image

You can always use https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg e.g. https://i.ytimg.com/vi/Axx9IMdL4jc/maxresdefault.jpg ,

On my instance, this is broken But I assume it works with the latest up to date version /LibreY/image_proxy.php?url=https://i.ytimg.com/vi/Axx9IMdL4jc/maxresdefault.jpg

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 19, 2024

On my instance, this is broken But I assume it works with the latest up to date version /LibreY/image_proxy.php?url=https://i.ytimg.com/vi/Axx9IMdL4jc/maxresdefault.jpg

No, because it's not added to the trusted proxy domains. That might be a good way to fetch thumbnails though!

@codedipper
Copy link

codedipper commented Jan 23, 2024

Of course, I understand, but I was wondering if Piped uses JavaScript to make requests to get queries or not. That's what I wanted to check.

https://docs.piped.video/docs/api-documentation/#streamsvideoid

But why? It's a backend change, so it makes no difference in what the user experiences. One can already used Piped as a frontend as explained here.

That might be a good way to fetch thumbnails though!

It could reduce some load on the instance used, but if that's the goal then we should be focusing on #81. Even Invidious uses the YouTube API for its search.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Feb 25, 2024

As of the latest commit (at time of writing), we use YouTube directly (proxied of course) for the thumbnails, which also makes it so that Piped or other instances should fully work!

@Ahwxorg Ahwxorg closed this as completed Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants