Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added support for chosing random invidious instances.
When `youtube-dl` is not installed, or it fails to retrieve the needed information, we fallback to invidious. Instead of using a predefined list of invidious instances, we now get the list of instances from https://instances.invidio.us/instances.json. This ensures that we always have a list of working instances. Additionally, in order to distribute the load evenly, we pick a random instance everytime. The JSON file is cached locally and updated hourly.
- Loading branch information
Showing
1 changed file
with
84 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters