Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Recently YouTube API Services team has disabled youtube-viewer API key (they reduced quota limit of queries per day for a single API key). youtube-viewer repository has been updated to allow setting your personally obtained API key.
So, for now, without updating youtube-viewer you're not able to view YouTube videos with it.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell --pure -I nixpkgs=https://github.com/alexoundos/nixpkgs/archive/52ad14bbee1c44688acdffc6a3ac595b80adca15.tar.gz -p youtube-viewer --run "youtube-viewer"
./result/bin/
)nix path-info -S
before and after)test the functionality in NixOS
Temporarily set the API key (please, do not overuse my).
$ cp
api.txt~/.config/youtube-viewer/api.json
Run.
SSL certificate trick is mandatory for pure nix-shell and partially described in #13744 (comment).