aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gtk-fair-viewer
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gtk-fair-viewer')
-rwxr-xr-xbin/gtk-fair-viewer20
1 files changed, 13 insertions, 7 deletions
diff --git a/bin/gtk-fair-viewer b/bin/gtk-fair-viewer
index 4020fd3..fadbf18 100755
--- a/bin/gtk-fair-viewer
+++ b/bin/gtk-fair-viewer
@@ -16,7 +16,7 @@
#-------------------------------------------------------
# GTK Fair Viewer
# Fork: 14 February 2020
-# Edit: 06 September 2020
+# Edit: 09 September 2020
# https://framagit.org/heckyel/fair-viewer
#-------------------------------------------------------
@@ -222,6 +222,9 @@ my %CONFIG = (
# Others
env_proxy => 1,
http_proxy => undef,
+ timeout => undef,
+ user_agent => undef,
+ cookie_file => undef,
prefer_fork => (($^O eq 'linux') ? 0 : 1),
debug => 0,
fullscreen => 0,
@@ -808,12 +811,14 @@ my $yv_obj = WWW::FairViewer->new(
escape_utf8 => 1,
config_dir => $config_dir,
hl => $CONFIG{hl},
- lwp_env_proxy => $CONFIG{env_proxy},
+ env_proxy => $CONFIG{env_proxy},
cache_dir => $CONFIG{cache_dir},
- authentication_file => $authentication_file,
- );
+ cookie_file => $CONFIG{cookie_file},
+ user_agent => $CONFIG{user_agent},
+ timeout => $CONFIG{timeout},
+ );
-$yv_obj->load_authentication_tokens();
+#$yv_obj->load_authentication_tokens();
if (defined $yv_obj->get_access_token()) {
show_user_panel();
@@ -824,7 +829,7 @@ else {
require WWW::FairViewer::Utils;
my $yv_utils = WWW::FairViewer::Utils->new(thousand_separator => $CONFIG{thousand_separator},
- youtube_url_format => $CONFIG{youtube_video_url},);
+ youtube_url_format => $CONFIG{youtube_video_url},);
# Set default combobox values
$definition_combobox->set_active(0);
@@ -864,7 +869,8 @@ sub apply_configuration {
videoEmbeddable videoLicense
publishedAfter publishedBefore
regionCode videoCategoryId
- debug http_proxy
+ debug http_proxy user_agent
+ timeout cookie_file
)
) {