aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/FairViewer
Commit message (Collapse)AuthorAgeFilesLines
* - Stricter selection of a random invidious instance (with api_host => "auto").trizen2020-11-091-1/+2
| | | | | | | | Ensure that a randomly selected invidious actually works, by making a search request with keyword "test". Additionally, in the selection of instances, only include instances with "weeklyRatio = success" and "dailyRatios[0] = "success" (in addition to "statusClass = sucess"). Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Fixed some potential corner-cases in the selection of thumbnails.trizen2020-11-091-6/+17
| | | | | | Also fixes the thumbnails for mixes. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Mention "pipe-viewer" in README. - Allow channel usernames in YouTube URLs ↵trizen2020-11-092-40/+20
| | | | | | to contain encoded characters of the form "%FF". - Removed some dead code. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Better detection for HFR (High Frame Rate) videos.trizen2020-11-091-5/+6
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Fixed the `dash_segmented` config-option.trizen2020-11-091-1/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Update from upstreamJesús2020-11-091-5/+5
| | | | | | | | - Documented the configuration options in `man fair-viewer`. - Fixed the `--page=i` option. - Added the `--dimension=3d` option. - Added the `--license=creative_commons` option. - Some code clean-up.
* - Implemented support for trending categories.trizen2020-11-094-64/+22
| | | | | | | | | | | | | | Example: fair-viewer --trending # trending videos fair-viewer --trending=music # trending music videos fair-viewer -c # list trending categories In the Gtk version, the trending categories are listed in the "Categories" tab. - Several internal code tweaks and improvements. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Implemented support for searching for videos from a specific channel.trizen2020-11-091-5/+17
| | | | | | | | | | Example: fair-viewer --author=SomeYouTubeUsername keywords-here In gtk-fair-viwer this is implemented via the "From author" field. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Implemented support for popular videos.trizen2020-11-092-25/+16
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added the "ignore_av1" config-option. (disabled by default)trizen2020-11-091-71/+67
| | | | | | When enabled, videos in AV1 format will be ignored. It's recommended to be enabled on slow hardware. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Use the video description from the `description` field when ↵trizen2020-10-031-0/+4
| | | | | | `descriptionHtml` is empty. Signed-off-by: Jesús <heckyel@hyperbola.info>
* quotemeta() the filename of the cookie file when passing it to `hypervideo`.trizen2020-09-281-3/+3
| | | | | | This now allows the filename to contain shell metacharacters. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Implemented `sort_by` and `date` parameters for `/search`. ↵trizen2020-09-284-80/+82
| | | | | | | | | | | | | | | (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>
* - Added instance-caching for `_get_video_info()`, `_extract_from_ytdl()` and ↵trizen2020-09-281-0/+1
| | | | | | | | | | | | `_extract_from_invidious()`. Too many requests to `_get_video_info()` and/or `hypervideo` may lead to a "429 - Too Many Requests" issue. Caching these functions may help to prevent this a little bit. Also playing the same video twice, the second time it will load much faster, since `_get_video_info()` is cached. Signed-off-by: Jesús <heckyel@hyperbola.info>
* gtk: fixed thumbnails for related videos.trizen2020-09-141-3/+11
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Reuse the "WWW::FairViewer" in "WWW::FairViewer::GetCaption".trizen2020-09-141-37/+9
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Minor code simplification in Utils.pmtrizen2020-08-071-3/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* In description, handle decoding of `youtu.be` links and other internal URLs.trizen2020-08-071-0/+10
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Minor fix in the decoding of URLs in video description.trizen2020-08-071-1/+6
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Use the ".opus" extension for audio streams.trizen2020-07-271-1/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Allow YouTube URLs to be passed to `--id`.trizen2020-07-271-1/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Minor code simplification.trizen2020-07-271-15/+12
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added support for ignoring high frame rate (HFR) videos.trizen2020-07-271-105/+90
| | | | | | | | | | | | Implemented via the `hfr` config-option. When set to "0", HFR videos will be ignored. Also available as a command-line option: $ fair-viewer --no-hfr By default, `hfr` is set to "1". Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added a fallback method for extracting video information. - Decode ↵trizen2020-06-062-2/+62
| | | | | | internal YouTube URLs in description. - Various fixes and improvements. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Filter out recommended videos from related videos.trizen2020-06-061-0/+7
| | | | | | Most often, they are not even related to the given video ID. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added basic support for related videos. (fixes ↵trizen2020-06-062-3/+93
| | | | | | | | | | | | | | https://github.com/trizen/straw-viewer/issues/15) Example: fair-viewer --related [video-id / URL] This also implements support for `--autoplay`, which is based on related videos. Thanks to @aearil for reporting this issue. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Allow channel & playlist IDs to be longer (between 11 and 64 characters).trizen2020-06-061-1/+1
| | | | | | | | | | | | This also allows IDs of "Albums & Singles". Example: fair-viewer -up=UCmsgp1PvOsb1sHxeiT_403A ...now allows the selection of the 5th result, which is of type "Albums & Singles". Signed-off-by: Jesús <heckyel@hyperbola.info>
* Reordered the itags for better quality.trizen2020-03-241-13/+14
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Support three-digit video selection.trizen2020-03-141-2/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Also replace "<br/>" with a newline. - Remove leading whitespace from ↵trizen2020-03-141-1/+2
| | | | | | description. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Extract URLs in description from `descriptionHtml` field. ↵trizen2020-03-141-2/+23
| | | | | | (https://github.com/trizen/fair-viewer/issues/6) - Added the `--api-host=<...>` command-line option for changing the API host. - Fixed the `--info=<URL>` option. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Support for next pages of playlists from username. - Better detection for ↵trizen2020-03-071-2/+4
| | | | | | the last page of results. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Implemented support for playlists from username.trizen2020-03-071-10/+2
|
* Keep dual licenses GPLv3 or later and Artistic 2.0Jesús2020-03-0317-203/+85
|
* Fix CopyrightJesús2020-03-0317-0/+46
|
* Revert "Fix Authors"Jesús2020-03-0311-0/+11
| | | | This reverts commit 596811c34ff9433faa734199521660a6bd811efa.
* Fix AuthorsJesús2020-03-0211-11/+0
|
* Fix Non-ASCII characterJesús2020-03-0217-34/+34
|
* Renew AuthorJesús2020-03-0217-87/+221
|
* rebrand appJesús2020-03-0217-0/+3612