@@ -196,8 +196,8 @@ my %CONFIG = (
196
196
arg => q{ --really-quiet --force-media-title=*TITLE* --no-ytdl --no-terminal *VIDEO*} ,
197
197
},
198
198
mpvraw => {
199
- arg => q{ --ytdl-raw-options-append="format-sort=ext,res:*RESOLUTION*" *URL*} ,
200
199
cmd => q{ mpv} ,
200
+ arg => q{ --ytdl-raw-options-append="format-sort=ext,res:*RESOLUTION*" --no-terminal *URL*} ,
201
201
fs => q{ --fullscreen} ,
202
202
srt => q{ --sub-file=*SUB*} ,
203
203
},
@@ -1413,7 +1413,7 @@ sub get_treeview_popup_menu {
1413
1413
# Playlists created by this author
1414
1414
{
1415
1415
my $item = ' Gtk3::ImageMenuItem' -> new(" Playlists" );
1416
- $item -> signal_connect(activate => \&show_playlists_from_selected_author );
1416
+ $item -> signal_connect(activate => sub { list_channel_playlists( $channel_id ) } );
1417
1417
$item -> set_property(tooltip_text => " Show playlists created by this author" );
1418
1418
$item -> set_image(' Gtk3::Image' -> new_from_icon_name(" emblem-documents-symbolic" , q{ menu} ));
1419
1419
$item -> show;
@@ -1592,12 +1592,66 @@ sub get_users_list_popup_menu {
1592
1592
$menu -> append($item );
1593
1593
}
1594
1594
1595
- # Playlists from channel
1595
+ # Recent shorts from this author
1596
+ {
1597
+ my $item = ' Gtk3::ImageMenuItem' -> new(" Shorts" );
1598
+ $item -> signal_connect(activate => sub { list_channel_shorts($channel_id ) });
1599
+ $item -> set_property(tooltip_text => " Show the most recent shorts from this author" );
1600
+ $item -> set_image(' Gtk3::Image' -> new_from_icon_name(" emblem-shared-symbolic" , q{ menu} ));
1601
+ $item -> show;
1602
+ $menu -> append($item );
1603
+ }
1604
+
1605
+ # Recent streams from this author
1606
+ {
1607
+ my $item = ' Gtk3::ImageMenuItem' -> new(" Streams" );
1608
+ $item -> signal_connect(activate => sub { list_channel_streams($channel_id ) });
1609
+ $item -> set_property(tooltip_text => " Show the most recent streams from this author" );
1610
+ $item -> set_image(' Gtk3::Image' -> new_from_icon_name(" media-record-symbolic" , q{ menu} ));
1611
+ $item -> show;
1612
+ $menu -> append($item );
1613
+ }
1614
+
1615
+ # Playlists created by this author
1596
1616
{
1597
1617
my $item = ' Gtk3::ImageMenuItem' -> new(" Playlists" );
1598
- $item -> set_image(' Gtk3::Image' -> new_from_icon_name(" emblem-documents" , q{ menu} ));
1599
- $item -> set_property(tooltip_text => " List the playlists created by this channel" );
1600
- $item -> signal_connect(activate => \&playlists_from_selected_username);
1618
+ $item -> signal_connect(activate => sub { list_channel_playlists($channel_id ) });
1619
+ $item -> set_property(tooltip_text => " Show playlists created by this author" );
1620
+ $item -> set_image(' Gtk3::Image' -> new_from_icon_name(" emblem-documents-symbolic" , q{ menu} ));
1621
+ $item -> show;
1622
+ $menu -> append($item );
1623
+ }
1624
+
1625
+ # Separator
1626
+ {
1627
+ my $item = ' Gtk3::SeparatorMenuItem' -> new;
1628
+ $item -> show;
1629
+ $menu -> append($item );
1630
+ }
1631
+
1632
+ # Most popular videos from this author
1633
+ {
1634
+ my $item = ' Gtk3::ImageMenuItem' -> new(" Popular videos" );
1635
+ $item -> signal_connect(activate => sub { popular_uploads($channel_id ) });
1636
+ $item -> set_property(tooltip_text => " Show the most popular videos from this author" );
1637
+ $item -> set_image(' Gtk3::Image' -> new_from_icon_name(" emblem-favorite" , q{ menu} ));
1638
+ $item -> show;
1639
+ $menu -> append($item );
1640
+ }
1641
+
1642
+ # Most popular streams from this author
1643
+ {
1644
+ my $item = ' Gtk3::ImageMenuItem' -> new(" Popular streams" );
1645
+ $item -> signal_connect(activate => sub { popular_streams($channel_id ) });
1646
+ $item -> set_property(tooltip_text => " Show the most popular livestreams from this author" );
1647
+ $item -> set_image(' Gtk3::Image' -> new_from_icon_name(" media-record" , q{ menu} ));
1648
+ $item -> show;
1649
+ $menu -> append($item );
1650
+ }
1651
+
1652
+ # Separator
1653
+ {
1654
+ my $item = ' Gtk3::SeparatorMenuItem' -> new;
1601
1655
$item -> show;
1602
1656
$menu -> append($item );
1603
1657
}
0 commit comments