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 /lib/WWW/FairViewer/GuideCategories.pm | |
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 'lib/WWW/FairViewer/GuideCategories.pm')
-rw-r--r-- | lib/WWW/FairViewer/GuideCategories.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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', }, ) { |