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/VideoCategories.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/WWW/FairViewer/VideoCategories.pm') diff --git a/lib/WWW/FairViewer/VideoCategories.pm b/lib/WWW/FairViewer/VideoCategories.pm index ecca0c2..85045fd 100644 --- a/lib/WWW/FairViewer/VideoCategories.pm +++ b/lib/WWW/FairViewer/VideoCategories.pm @@ -39,8 +39,8 @@ sub video_categories { require File::Spec; - my $region = $self->get_regionCode() // 'US'; - my $url = $self->_make_videoCategories_url(regionCode => $region); + my $region = $self->get_region() // 'US'; + my $url = $self->_make_videoCategories_url(region => $region); my $file = File::Spec->catfile($self->get_config_dir, "categories-$region-" . $self->get_hl() . ".json"); my $json; -- cgit v1.2.3