gtk: pass "--no-dash-segmented" to the CLI version when dash_segmented is disabled.

gtk: added a few more tooltips in the GUI.
Esse commit está contido em:
trizen
2020-10-30 20:41:15 +02:00
commit ad3a191c07
3 arquivos alterados com 40 adições e 34 exclusões
+11 -10
Ver Arquivo
@@ -19,8 +19,8 @@
# https://github.com/trizen/pipe-viewer
#-------------------------------------------------------
# This is a fork of youtube-viewer:
# https://github.com/trizen/youtube-viewer
# This is a fork of straw-viewer:
# https://github.com/trizen/straw-viewer
use utf8;
use 5.016;
@@ -854,7 +854,7 @@ sub apply_configuration {
$audio_only_checkbutton->set_active($CONFIG{audio_only});
# DASH mode
$dash_checkbutton->set_active($CONFIG{dash_support});
$dash_checkbutton->set_active($CONFIG{dash_segmented});
$clear_list_checkbutton->set_active($CONFIG{clear_search_list});
$panel_account_type_combobox->set_active($CONFIG{active_panel_account_combobox});
@@ -1742,7 +1742,7 @@ sub toggled_audio_only {
# DASH mode
sub toggled_dash_support {
$CONFIG{dash_support} = $dash_checkbutton->get_active() || 0;
$CONFIG{dash_segmented} = $dash_checkbutton->get_active() || 0;
}
# Check buttons toggles
@@ -3141,12 +3141,13 @@ sub run_cli_pipe_viewer {
sub get_options_as_arguments {
my @args;
my %options = (
'no-interactive' => q{},
'resolution' => $CONFIG{resolution},
'download-dir' => quotemeta(rel2abs($CONFIG{downloads_dir})),
'fullscreen' => $CONFIG{fullscreen} ? q{} : undef,
'no-dash' => $CONFIG{dash_support} ? undef : q{},
'no-video' => $CONFIG{audio_only} ? q{} : undef,
'no-interactive' => q{},
'resolution' => $CONFIG{resolution},
'download-dir' => quotemeta(rel2abs($CONFIG{downloads_dir})),
'fullscreen' => $CONFIG{fullscreen} ? q{} : undef,
'no-dash' => $CONFIG{dash_support} ? undef : q{},
'no-dash-segmented' => $CONFIG{dash_segmented} ? undef : q{},
'no-video' => $CONFIG{audio_only} ? q{} : undef,
);
while (my ($argv, $value) = each %options) {
+4 -4
Ver Arquivo
@@ -14,15 +14,15 @@
#
#-------------------------------------------------------
# pipe-viewer
# Fork: 14 February 2020
# Edit: 06 October 2020
# Fork: 30 October 2020
# Edit: 30 October 2020
# https://github.com/trizen/pipe-viewer
#-------------------------------------------------------
# pipe-viewer is a command line utility for streaming YouTube videos in mpv/vlc.
# This is a fork of youtube-viewer:
# https://github.com/trizen/youtube-viewer
# This is a fork of straw-viewer:
# https://github.com/trizen/straw-viewer
=encoding utf8
+25 -20
Ver Arquivo
@@ -906,7 +906,7 @@ Author: Trizen https://github.com/trizen
<object class="GtkComboBoxText" id="comboboxtext10">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Type of search results.</property>
<property name="tooltip-text" translatable="yes">Type of search results</property>
<property name="active">0</property>
<items>
<item translatable="yes">video</item>
@@ -960,7 +960,7 @@ Author: Trizen https://github.com/trizen
<object class="GtkComboBoxText" id="comboboxtext2">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Search order for videos.</property>
<property name="tooltip-text" translatable="yes">Search order for videos</property>
<property name="active">0</property>
<items>
<item translatable="yes">relevance</item>
@@ -1135,7 +1135,7 @@ long – longer than 20 minutes</property>
<object class="GtkComboBoxText" id="comboboxtext5">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Retrieve only videos with Creative-Commons license.</property>
<property name="tooltip-text" translatable="yes">Retrieve only videos with Creative-Commons license</property>
<property name="active">0</property>
<items>
<item translatable="yes">any</item>
@@ -1187,8 +1187,7 @@ long – longer than 20 minutes</property>
<object class="GtkSpinButton" id="spinbutton1">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="tooltip-text" translatable="yes">The maximum number of results per page.
Recommended: 10</property>
<property name="tooltip-text" translatable="yes">The maximum number of results per page.</property>
<property name="max-length">2</property>
<property name="invisible-char">•</property>
<property name="caps-lock-warning">False</property>
@@ -1283,6 +1282,7 @@ Recommended: 10</property>
<object class="GtkComboBoxText" id="comboboxtext1">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Retrieve only videos newer than this.</property>
<items>
<item translatable="yes">anytime</item>
<item translatable="yes">hour</item>
@@ -1384,6 +1384,7 @@ Unless the author name is valid, this field is ignored.</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes">Show thumbnails for videos in search results.</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="thumbs_checkbutton_toggled" swapped="no"/>
</object>
@@ -1399,6 +1400,7 @@ Unless the author name is valid, this field is ignored.</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes">Start videos in fullscreen mode.</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="toggled_fullscreen" swapped="no"/>
</object>
@@ -1409,32 +1411,35 @@ Unless the author name is valid, this field is ignored.</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="dash_checkbutton">
<property name="label" translatable="yes">DASH support</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="toggled_dash_support" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="audio_only_checkbutton">
<property name="label" translatable="yes">Audio only</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes">Play videos as audio.</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="toggled_audio_only" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="dash_checkbutton">
<property name="label" translatable="yes">DASH videos</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes">Support for videos in DASH format.
When disabled, streams in DASH format will be ignored if there exists an alternative.</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="toggled_dash_support" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">3</property>
</packing>
</child>