diff options
author | trizen <trizen@protonmail.com> | 2020-09-18 19:44:07 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-09-28 22:17:04 -0500 |
commit | 27774c9579fad5b7595c3f936597307feadaef9d (patch) | |
tree | ccb6664bd6e32a258befeb84f35c1b347b892fff /share | |
parent | 8caf34c363ee1554787104f1b90a820075833655 (diff) | |
download | fair-viewer-27774c9579fad5b7595c3f936597307feadaef9d.tar.lz fair-viewer-27774c9579fad5b7595c3f936597307feadaef9d.tar.xz fair-viewer-27774c9579fad5b7595c3f936597307feadaef9d.zip |
- Implemented `sort_by` and `date` parameters for `/search`. (https://github.com/iv-org/invidious/wiki/API#get-apiv1search)
In the CLI version, we have:
--order=s # valid values: relevance rating upload_date view_count
--date=s # valid values: hour today week month year
In the GTK3 version, this is implemented in the "Order by" and "Published within" comboboxes.
Also implemented the `--hd`, `--captions` and `--region=s` options.
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'share')
-rw-r--r-- | share/gtk-fair-viewer.glade | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/share/gtk-fair-viewer.glade b/share/gtk-fair-viewer.glade index 9b9edc0..48b3a05 100644 --- a/share/gtk-fair-viewer.glade +++ b/share/gtk-fair-viewer.glade @@ -986,11 +986,9 @@ Author: Jesus E. https://framagit.org/heckyel <property name="active">0</property> <items> <item translatable="yes">relevance</item> - <item translatable="yes">title</item> <item translatable="yes">rating</item> - <item translatable="yes">date</item> - <item translatable="yes">videoCount</item> - <item translatable="yes">viewCount</item> + <item translatable="yes">upload_date</item> + <item translatable="yes">view_count</item> </items> <signal name="changed" handler="combobox_order_changed" swapped="no"/> </object> @@ -1041,7 +1039,6 @@ long – longer than 20 minutes</property> <items> <item translatable="yes">any</item> <item translatable="yes">short</item> - <item translatable="yes">medium</item> <item translatable="yes">long</item> </items> <signal name="changed" handler="combobox_duration_changed" swapped="no"/> @@ -1082,8 +1079,7 @@ long – longer than 20 minutes</property> <property name="active">0</property> <items> <item translatable="yes">any</item> - <item translatable="yes">closedCaption</item> - <item translatable="yes">none</item> + <item translatable="yes">true</item> </items> <signal name="changed" handler="combobox_caption_changed" swapped="no"/> </object> @@ -1124,7 +1120,6 @@ long – longer than 20 minutes</property> <items> <item translatable="yes">any</item> <item translatable="yes">high</item> - <item translatable="yes">standard</item> </items> <signal name="changed" handler="combobox_definition_changed" swapped="no"/> </object> @@ -1305,36 +1300,16 @@ Recommended: 10</property> <property name="visible">True</property> <property name="can_focus">False</property> <child> - <object class="GtkSpinButton" id="spinbutton3"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="invisible_char">•</property> - <property name="caps_lock_warning">False</property> - <property name="primary_icon_activatable">False</property> - <property name="secondary_icon_activatable">False</property> - <property name="adjustment">adjustment3</property> - <property name="climb_rate">1</property> - <property name="numeric">True</property> - <property name="update_policy">if-valid</property> - <signal name="activate" handler="search" swapped="no"/> - <signal name="value-changed" handler="spin_published_within_changed" swapped="no"/> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> <object class="GtkComboBoxText" id="comboboxtext1"> <property name="visible">True</property> <property name="can_focus">False</property> <items> <item translatable="yes">anytime</item> - <item translatable="yes">days</item> - <item translatable="yes">weeks</item> - <item translatable="yes">months</item> - <item translatable="yes">years</item> + <item translatable="yes">hour</item> + <item translatable="yes">today</item> + <item translatable="yes">week</item> + <item translatable="yes">month</item> + <item translatable="yes">year</item> </items> <signal name="changed" handler="combobox_published_within_changed" swapped="no"/> </object> |