aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fair-viewer
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fair-viewer')
-rwxr-xr-xbin/fair-viewer16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/fair-viewer b/bin/fair-viewer
index cb3bf05..0414696 100755
--- a/bin/fair-viewer
+++ b/bin/fair-viewer
@@ -59,7 +59,7 @@ use warnings;
no warnings 'once';
my $DEVEL; # true in devel mode
-use if ($DEVEL = 0), lib => qw(../lib); # devel only
+use if ($DEVEL = 0), lib => qw(../lib); # devel mode
use WWW::FairViewer v1.0.4;
use WWW::FairViewer::RegularExpressions;
@@ -175,7 +175,7 @@ my %CONFIG = (
video_player_selected => (
$constant{win32}
? 'vlc'
- : undef # auto-defined
+ : undef # auto-defined
),
# YouTube options
@@ -203,7 +203,7 @@ my %CONFIG = (
regionCode => undef,
# URI options
- youtube_video_url => 'https://invidio.us/watch?v=%s',
+ youtube_video_url => 'https://www.youtube.com/watch?v=%s',
# Subtitle options
srt_languages => ['en', 'es'],
@@ -3592,9 +3592,6 @@ sub print_video_info {
sub print_videos {
my ($results, %args) = @_;
- # use Data::Dump qw(pp);
- # pp $results;
-
if (not $yv_utils->has_entries($results)) {
warn_no_results("video");
}
@@ -3611,8 +3608,11 @@ sub print_videos {
}
if (ref($videos) ne 'ARRAY') {
- say "\n:: Probably ", $yv_obj->get_api_host, " is down. Try:";
- say "\n\t$0 --api=invidious.13ad.de\n";
+
+ my $current_instance = $yv_obj->get_api_host();
+
+ say "\n:: Probably $current_instance is down. Try:";
+ say "\n\t$0 --api=auto\n";
say "See also: https://libregit.org/heckyel/fair-viewer#invidious-instances";
return;
}