aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/FairViewer/VideoCategories.pm
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-09-18 19:44:07 +0300
committerJesús <heckyel@hyperbola.info>2020-09-28 22:17:04 -0500
commit27774c9579fad5b7595c3f936597307feadaef9d (patch)
treeccb6664bd6e32a258befeb84f35c1b347b892fff /lib/WWW/FairViewer/VideoCategories.pm
parent8caf34c363ee1554787104f1b90a820075833655 (diff)
downloadfair-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 'lib/WWW/FairViewer/VideoCategories.pm')
-rw-r--r--lib/WWW/FairViewer/VideoCategories.pm4
1 files changed, 2 insertions, 2 deletions
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;