From 27774c9579fad5b7595c3f936597307feadaef9d Mon Sep 17 00:00:00 2001 From: trizen Date: Fri, 18 Sep 2020 19:44:07 +0300 Subject: - Implemented `sort_by` and `date` parameters for `/search`. (https://github.com/iv-org/invidious/wiki/API#get-apiv1search) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/WWW/FairViewer/GuideCategories.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/WWW/FairViewer/GuideCategories.pm') diff --git a/lib/WWW/FairViewer/GuideCategories.pm b/lib/WWW/FairViewer/GuideCategories.pm index 34d0a1d..a348abb 100644 --- a/lib/WWW/FairViewer/GuideCategories.pm +++ b/lib/WWW/FairViewer/GuideCategories.pm @@ -22,7 +22,7 @@ sub _make_guideCategories_url { my ($self, %opts) = @_; if (not exists $opts{id}) { - $opts{regionCode} //= $self->get_regionCode; + $opts{region} //= $self->get_region; } $self->_make_feed_url('guideCategories', hl => $self->get_hl, %opts); @@ -47,7 +47,7 @@ Return info for a list of comma-separated category IDs. name => 'guide_categories_info', }, { - key => 'regionCode', + key => 'region', name => 'guide_categories', }, ) { -- cgit v1.2.3