NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

Add Invidious as an optional YouTube Source

Open Gymcap opened this issue 5 years ago • 21 comments

Invidious is a clone of YouTube created for a similar reason to NewPipe. This site happens to use the exact same URL scheme as YouTube does, with pretty much the exact same layout, but with two major changes.

  • Only Content
  • More Information about Content

The only information that gets loaded on an Invidious page, is content and information about it. There is also slightly more information availible about the video loaded as well. I believe that invidious could be ported to NewPipe very quickly because of the way it is setup.

Here's an example video from Kurzgesagt - https://www.invidio.us/watch?v=-O5kNPlUV7w

As you can see, the layout is so minimalistic, that there is literally nothing to sift through in terms of porting. I really don't think it could be any easier site to port to NewPipe.

The main reason I bring this site up, is because if this site was added as an optional source for YouTube videos, then the user can effectively, disconnect from Google's YouTube entirely.

Gymcap avatar Nov 04 '18 15:11 Gymcap

Backends are more than just scrapping the watching page, gotta also scrap the search page. (possibly even the main page although not sure)

Also, Invidio.us doesn't allow you to disconnect entirely, the video still comes from Youtube/Google.

But sure, we can use it for obfuscation of search results but it's ehh

lionirdeadman avatar Nov 04 '18 19:11 lionirdeadman

Invidious exposes an API that I imagine would be much easier to use than scraping the page.

@lionirdeadman is correct that videos still come from Google, although I expect them to be proxied with omarroth/invidious#34.

omarroth avatar Nov 05 '18 00:11 omarroth

Neato. I wish you good luck though. Proxying Youtube videos for everyone sounds incredibly tough.

lionirdeadman avatar Nov 07 '18 07:11 lionirdeadman

I'd like to see support for syncing subs with an invidious instance (public and custom)

BlauerHunger avatar Mar 03 '19 17:03 BlauerHunger

I often share video to social network and IM. It will be great to share with invidous url instead of youtube.

This can be at least optional with setting

Beapal avatar Apr 09 '19 08:04 Beapal

Maybe you could get it so you can log into your Invidious account to sync everything.

poperigby avatar Apr 22 '19 15:04 poperigby

Just like to add my voice to the mumble! This feat would be great, then I wouldn't have to figure out a way to let newpipe pass my google-filter in afwall:) I wish I'd have the skill to contribute!

Psylocybine avatar May 16 '19 17:05 Psylocybine

How is the status?

Also Invidious provide a "&local=true" parameter which load the video completely from their own server, without any Google connections to Enduser

beerisgood avatar Jun 04 '19 07:06 beerisgood

Any updates on this?

BeatLink avatar Mar 20 '20 06:03 BeatLink

Still waiting for this…

danialbehzadi avatar May 13 '20 07:05 danialbehzadi

@Stypox Would this not fix TeamNewPipe/NewPipe#3612? Also this would be awesome, maybe add it to v.0.20.0? I really want this now, after I turned off Tor for NewPipe, this would really be great for that new proxified solution :D

Also Invidious provide a "&local=true" parameter which load the video completely from their own server, without any Google connections to Enduser

ghost avatar May 21 '20 19:05 ghost

As it was already mentioned before in this thread, we won't scrape invidious but use their API. I don't know how to have invidious videos from their API, it's returning videos from googlevideos.com and i've tried local=true parameter, but it didn't work. One result seems to be proxied with invidious instance: dashUrl, but it may fall under https://github.com/TeamNewPipe/NewPipe/issues/2415 bug.

B0pol avatar May 21 '20 20:05 B0pol

Alright @B0pol. Maybe skip the proxified parameters. But as TeamNewPipe/NewPipe#3710 mentioned and I did in #3612(Comment) wouldn't it solve reCAPTCHAs?

ghost avatar May 31 '20 18:05 ghost

I'd say yes, I haven't seen anything about rate limitation or captcha in api documentation. But I'm not sure.

Unless YouTube puts Captchas on ytimg.com (for thumbnails) and googlevideo.com (videos), but I doubt.

B0pol avatar May 31 '20 18:05 B0pol

Alright @B0pol. Maybe skip the proxified parameters. But as TeamNewPipe/NewPipe#3710 mentioned and I did in TeamNewPipe/NewPipe#3612(Comment) wouldn't it solve reCAPTCHAs

I think this is one of the biggest reasons Invidious must be supported. YouTube just bothers too much with the CAPTCHAs when using VPN, in my case.

It would be nice to see a list of instances to select, like PeerTube, so that users can add their own instances

FYI, Straw-viewer (Invidious version of YouTube Viewer) uses the Invidious API and it hasn't give me any issues yet (like Google trying to block me)

Megver83 avatar Jul 14 '20 18:07 Megver83

Any updates on this?

alefvanoon avatar Apr 10 '21 21:04 alefvanoon

+1 on this. The invidious api is much more stable, will not break constantly like youtube does. Plus will not use google's servers directly for anyone who cares about this. Another plus is that they don't make you fill out a captcha time to time.

toniz4 avatar May 15 '21 16:05 toniz4

I would like to see this utilised as well. Considering this is my go to for YouTube on Android I would like to hit my own local invidious self hosted instance

Joshndroid avatar Jul 23 '21 02:07 Joshndroid

Quoting @SamantazFox from #789:

If anyone plan to work on that, it'd be preferrable to wait that we start working on an API v2 (or at least a remaster of the v1). Many things needs to be done on our side to ensure consistency across the API and make it more usable.

Also, it'd be awesome if we could have more instances hosting just the API, as the current official list is quite overloaded by bots scraping our API.

triallax avatar Feb 03 '22 20:02 triallax

Sharing video link as an invidious link would be a great feature, freetube does this for example, but is only available on desktop image

trollogyadherent avatar Mar 14 '22 14:03 trollogyadherent

@trollogyadherent that's a separate request; this issue asks for fetching YouTube information from Invidious, not for sharing Invidious links. You're looking for https://github.com/TeamNewPipe/NewPipe/issues/2351.

triallax avatar Mar 14 '22 20:03 triallax