Skip to content

Commit

Permalink
Fixed the --invidious command-line flag added in the previous commi…
Browse files Browse the repository at this point in the history
…t. (special thanks to @arankaren for testing and reporting this issue) (https://github.com/trizen/youtube-viewer/issues/258)

Example:

	youtube-viewer --invidious	# use invidio.us API
	youtube-viewer --no-invidious	# don't use invidio.us API (default)
  • Loading branch information
trizen committed Jul 11, 2019
1 parent 0cd9a54 commit d856b99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/youtube-viewer
Expand Up @@ -1096,7 +1096,7 @@ sub apply_configuration {
publishedAfter publishedBefore
safeSearch regionCode debug hl
http_proxy page comments_order
subscriptions_order
subscriptions_order use_invidious_api
)
) {

Expand Down
4 changes: 2 additions & 2 deletions lib/WWW/YoutubeViewer.pm
Expand Up @@ -523,7 +523,7 @@ sub _fallback_extract_urls {
if ($self->get_use_invidious_api) { # use the API of invidio.us

if ($self->get_debug) {
say STDERR ":: Using the API of invidio.us...";
say STDERR ":: Using invidio.us to extract the streaming URLs...";
}

push @array, $self->_extract_from_indivious($videoID);
Expand All @@ -541,7 +541,7 @@ sub _fallback_extract_urls {
|| return;

if ($self->get_debug) {
say STDERR ":: Using youtube-dl to extract streaming URLs...";
say STDERR ":: Using youtube-dl to extract the streaming URLs...";
}

my $json = $self->proxy_stdout('youtube-dl', '--all-formats', '--dump-single-json',
Expand Down

0 comments on commit d856b99

Please sign in to comment.