Total Pageviews

Tuesday 27 April 2021

利用Invidious访问youtube网站

 Invidious is an alternative front-end to YouTube.

https://instances.invidious.io/

Invidious instances:

Public Invidious instances are listed on the documentation website: https://instances.invidious.io/


Invidious features:

  • Copylefted libre software (AGPLv3+ licensed)
  • Lightweight (the homepage is ~4 KB compressed)
  • No ads
  • No tracking
  • Javascript is 100% optional
  • Tools for managing subscriptions:
    • Only show unseen videos
    • Only show latest (or latest unseen) video from each channel
    • Delivers notifications from all subscribed channels
    • Automatically redirect homepage to feed
    • Import subscriptions from YouTube
  • Audio-only mode (and no need to keep window open on mobile)
  • Dark mode
  • Embed support
  • Set default player options (speed, quality, autoplay, loop)
  • Support for Reddit comments in place of YouTube comments
  • Import/Export subscriptions, watch history, preferences
  • Developer API
  • Does not use any of the official YouTube APIs
  • No need to create a Google account to save subscriptions
  • No Code of Conduct
  • No Contributor license Agreement
  • Available in many languages, thanks to Weblate











Donate:

Bitcoin (BTC): bc1qfhe7rq3lqzuayzjxzyt9waz9ytrs09kla3tsgr

Monero (XMR): 41nMCtek197boJtiUvGnTFYMatrLEpnpkQDmUECqx5Es2uX3sTKKWVhSL76suXsG3LXqkEJBrCZBgPTwJrDp1FrZJfycGPR


Documentation:

The complete documentation is available on https://docs.invidious.io/ (or alternatively on its own Github repository).


Extensions:

Extensions can be found in the wiki, as well as documentation for integrating it into other projects.


Made with Invidious:

  • FreeTube: A libre software YouTube app for privacy.
  • CloudTube: A JavaScript-rich alternate YouTube player.
  • PeerTubeify: On YouTube, displays a link to the same video on PeerTube, if it exists.
  • MusicPiped: A material design music player that streams music from YouTube.
  • HoloPlay: Funny Android application connecting on Invidious API's with search, playlists and favoris.
  • https://yewtu.be/ ,比如访问https://yewtu.be/watch?v=p7OjIkRvO0E,就能访问https://www.youtube.com/watch?v=p7OjIkRvO0E
  •  https://docs.invidious.io/Invidious-Instances.md
  •  
  • from https://github.com/iv-org/invidious

-------------------------------------------------------------

The official Invidious documentation.

https://docs.invidious.io/

General

For Administrators

For Developers

from  https://github.com/iv-org/documentation

-------

Automatic install and update script for Invidious.

 

Invidious-Updater (And Installer)

                  ╔═══════════════════════════════════════════════════════════════════╗
                  ║                        Invidious Update.sh                        ║
                  ║               Automatic update script for Invidious               ║
                  ║                      Maintained by @tmiland                       ║
                  ╚═══════════════════════════════════════════════════════════════════╝

GitHub release licence Bash

Script to install and update Invidious

1) Install Invidious          6) Start, Stop or Restart   
2) Update Invidious           7) Uninstall Invidious      
3) Deploy with Docker         8) Set up PostgreSQL Backup 
4) Add Swap Space             9) Install Nginx            
5) Run Database Maintenance  10) Exit                     

Screenshots

screenshot

Debian Ubuntu
CentOS Fedora
Arch PureOS

Recommendation

It is recommended to use this script on a fresh installation to avoid unwanted complications.

Installation

Download and execute the script:

For latest release

curl -s https://api.github.com/repos/tmiland/Invidious-Updater/releases/latest \
| grep "browser_download_url.*sh" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
$ chmod +x invidious_update.sh
$ ./invidious_update.sh

Or directly

$ curl -sSL https://github.com/tmiland/Invidious-Updater/releases/latest/download/invidious_update.sh | bash

For master branch

$ wget https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh
$ chmod +x invidious_update.sh
$ ./invidious_update.sh

Repository

$ sudo curl -SsL -o /etc/apt/sources.list.d/tmiland.list https://deb.tmiland.com/debian/tmiland.list
$ curl -SsL https://deb.tmiland.com/debian/KEY.gpg | sudo apt-key add -
$ sudo apt update
$ sudo apt install invidious-updater
  • Run script with invidious_update

  • Only for Debian/Ubuntu/LinuxMint/PureOS

Check for script update (Default "no")

$ ./invidious_update.sh -u

Update Invidious via Cron

Select option 2 once to manually set GitHub Credentials

$ /path/to/script/invidious_update.sh -c

Add job to cron:

$ crontab -e
@daily bash /path/to/script/invidious_update.sh -c > /dev/null 2>&1 # Automated Invidious Update

Note: you will be prompted to enter root password

If root password is not set, type:

sudo passwd root

Usage

  1. Install invidious

asciicast

  1. Update Invidious

Note: GitHub Credentials needs to be provided to keep the update from failing (Credentials are stored in /root/.gitconfig) This is required to stash & checkout a new branch which was implemented to prevent "Detached HEAD state".

  • Invidious is ready to be updated, press any key to continue...
  1. Deploy Invidious with Docker

      1. Build and start cluster
      1. Start, Stop or Restart cluster
      1. Rebuild cluster
      1. Delete data and rebuild
      1. Install Docker CE
      1. Run database maintenance
  2. Add Swap Space

  3. Run database maintenance

    Also works with argument -m

    $ /path/to/script/invidious_update.sh -m
  4. Start, Stop or Restart Invidious

  5. Uninstall Invidious

asciicast

  1. Set up PostgreSQL Backup

  2. Install Nginx

  3. Exit

  • Exits the script

screenshot

Testing

Tested and working on:

Debian Ubuntu CentOS Fedora Arch PureOS
 

Compatibility and Requirements

  • Debian 8 and later
  • Ubuntu 16.04 and later
  • PureOS (Not tested)
  • CentOS 8
  • Fedora 33
  • Arch Linux
 

Credits

 





    

No comments:

Post a Comment