aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gtk-straw-viewer
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-02-15 08:39:16 +0200
committertrizen <trizen@protonmail.com>2020-02-15 08:39:16 +0200
commit0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3 (patch)
tree2ca5403537ec7aadb40429ea2e95b3013e5bb842 /bin/gtk-straw-viewer
parentd3c5fe3152d72c9ff8e926f5371b26441ba27e80 (diff)
downloadfair-viewer-0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3.tar.lz
fair-viewer-0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3.tar.xz
fair-viewer-0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3.zip
Support input URLs
Diffstat (limited to 'bin/gtk-straw-viewer')
-rwxr-xr-xbin/gtk-straw-viewer6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/gtk-straw-viewer b/bin/gtk-straw-viewer
index 26183ac..7af5b95 100755
--- a/bin/gtk-straw-viewer
+++ b/bin/gtk-straw-viewer
@@ -55,8 +55,6 @@ my $version = $WWW::StrawViewer::VERSION;
# Share directory
my $share_dir = ($DEVEL and -d "../share") ? '../share' : dist_dir('WWW-StrawViewer');
-sub VIDEO_PART () { 'contentDetails,statistics,snippet' }
-
# Configuration dir/file
my $home_dir;
my $xdg_config_home = $ENV{XDG_CONFIG_HOME};
@@ -2233,10 +2231,10 @@ sub check_keywords {
my ($key) = @_;
if ($key =~ /$get_video_id_re/o) {
- my $info = $yv_obj->video_details($+{video_id}, VIDEO_PART);
+ my $info = $yv_obj->video_details($+{video_id});
if ($yv_utils->has_entries($info)) {
- if (not play_video($info->{results}{items}[0])) {
+ if (not play_video($info->{results})) {
return;
}
}