aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-02-26 09:42:55 +0200
committertrizen <trizen@protonmail.com>2020-02-26 09:42:55 +0200
commit5e045256ad8f0188fffd20e02afab8ae6f114d3d (patch)
tree7a2e2fd3b7e5f8748dc3bae901ac466ef3f676bb /bin
parent82ba1e39659b177b7b0de85f74d2d6136cab2982 (diff)
downloadfair-viewer-5e045256ad8f0188fffd20e02afab8ae6f114d3d.tar.lz
fair-viewer-5e045256ad8f0188fffd20e02afab8ae6f114d3d.tar.xz
fair-viewer-5e045256ad8f0188fffd20e02afab8ae6f114d3d.zip
When `youtube-dl` is not installed, try to use the API of invidio.us.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gtk-straw-viewer5
-rwxr-xr-xbin/straw-viewer4
2 files changed, 2 insertions, 7 deletions
diff --git a/bin/gtk-straw-viewer b/bin/gtk-straw-viewer
index 7af5b95..ba4f123 100755
--- a/bin/gtk-straw-viewer
+++ b/bin/gtk-straw-viewer
@@ -234,8 +234,6 @@ my %CONFIG = (
tooltips => 1,
tooltip_max_len => 512, # max length of description in tooltips
- use_invidious_api => 0,
-
thousand_separator => q{,},
downloads_dir => curdir(),
web_browser => undef, # defaults to $ENV{WEBBROWSER} or xdg-open
@@ -812,7 +810,6 @@ my $yv_obj = WWW::StrawViewer->new(
hl => $CONFIG{hl},
lwp_env_proxy => $CONFIG{env_proxy},
cache_dir => $CONFIG{cache_dir},
- use_invidious_api => $CONFIG{use_invidious_api},
authentication_file => $authentication_file,
);
@@ -867,7 +864,7 @@ sub apply_configuration {
videoEmbeddable videoLicense
publishedAfter publishedBefore
regionCode videoCategoryId
- debug http_proxy use_invidious_api
+ debug http_proxy
)
) {
diff --git a/bin/straw-viewer b/bin/straw-viewer
index cb30552..147e16e 100755
--- a/bin/straw-viewer
+++ b/bin/straw-viewer
@@ -222,7 +222,6 @@ my %CONFIG = (
# Others
autoplay_mode => 0,
- use_invidious_api => 0,
http_proxy => undef,
env_proxy => 1,
confirm => 0,
@@ -613,7 +612,6 @@ my $yv_obj = WWW::StrawViewer->new(
config_dir => $config_dir,
cache_dir => $opt{cache_dir},
lwp_env_proxy => $opt{env_proxy},
- use_invidious_api => $opt{use_invidious_api},
authentication_file => $authentication_file,
);
@@ -1105,7 +1103,7 @@ sub apply_configuration {
publishedAfter publishedBefore
safeSearch regionCode debug hl
http_proxy page comments_order
- subscriptions_order use_invidious_api
+ subscriptions_order
)
) {