aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gtk-straw-viewer
diff options
context:
space:
mode:
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;
}
}