aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fair-viewer
Commit message (Collapse)AuthorAgeFilesLines
* version 1.1.1HEADmasterJesús2021-07-091-1/+1
|
* version 1.1.0Jesús2021-07-091-1/+1
|
* upstreamJesús2021-07-091-780/+1234
|
* version 1.0.6Jesús2020-12-161-1/+1
|
* Allow setting the video title to *ID* or *URL* in the configuration file and ↵Jesús2020-12-021-2/+2
| | | | | | remove smplayer support. (https://github.com/trizen/youtube-viewer/issues/348)
* version 1.0.5Jesús2020-11-111-1/+1
|
* Fix nameJesús2020-11-091-3/+3
|
* - Replaced "--title" with "--force-media-title" for `mpv` player. ↵trizen2020-11-091-3/+3
| | | | | | (https://github.com/trizen/youtube-viewer/issues/342) Signed-off-by: Jesús <heckyel@hyperbola.info>
* update from upstreamJesús2020-11-091-10/+12
| | | | POD tweaks. (utf8 + fixes)
* Several typo and spelling fixes.trizen2020-11-091-6/+10
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Update from upstreamJesús2020-11-091-1/+1
| | | | | Updated "determine_image_format()" to detect WEBP. Although, at the moment, the PixbufLoader doesn't recognize the WEBP format.
* Update from upstreamJesús2020-11-091-13/+408
| | | | | | | | - 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-091-75/+9
| | | | | | | | | | | | | | 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>
* - Added the "ignore_av1" config-option. (disabled by default)trizen2020-11-091-17/+15
| | | | | | 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>
* update from upstreamJesús2020-11-091-4/+30
|
* - Implemented `sort_by` and `date` parameters for `/search`. ↵trizen2020-09-281-154/+135
| | | | | | | | | | | | | | | (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-7/+7
| | | | | | | | | | | | `_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>
* Suggest trying "--api=auto" when the current invidious instance fails.trizen2020-09-141-8/+8
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Save converted in the same folder they are downloaded in.trizen2020-09-141-1/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Reuse the "WWW::FairViewer" in "WWW::FairViewer::GetCaption".trizen2020-09-141-0/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added support for loading cookies from a file.trizen2020-09-141-7/+18
| | | | | | | | | | | | The file must be a "# Netscape HTTP Cookie File"; same format as "hypervideo" requires. The "cookies.txt" extension can be used for exporting the cookies from the browser. This helps with the "429: Too Many Requests" issue. See also: https://github.com/ytdl-org/hypervideo#how-do-i-pass-cookies-to-hypervideo Signed-off-by: Jesús <heckyel@hyperbola.info>
* Documented `--api=auto`.trizen2020-09-141-1/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added support for automatically picking an invidious instance.trizen2020-09-141-2/+2
| | | | | | | | | | | | | | | | Provided via: fair-viewer --api=auto or by setting in the configuration file: api_host => "auto", The list of instances ("instances.json") is cached locally and updated automatically every hour. In order to distribute the load evenly across the invidious instances, when "api_host" is set to "auto", fair-viewer will pick a random instance every time the program is started. Signed-off-by: Jesús <heckyel@hyperbola.info>
* When the current API host is down, suggest `invidious.13ad.de` instead of ↵trizen2020-08-141-1/+1
| | | | | | `yewtu.be`. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Try to be more helpful when the API instance fails.trizen2020-08-141-1/+8
| | | | | | Instead of dying with "Not an ARRAY reference", it now prints a message saying how to change the API host. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Changed the default API host to `invidious.snopyta.org`.trizen2020-08-141-1/+1
| | | | | | The instance `invidio.us` seems to be down at the moment. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fixed the printing of channel names in search context.trizen2020-07-271-1/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix nake_filenameJesús2020-07-271-1/+1
|
* - Allow YouTube URLs to be passed to `--id`.trizen2020-07-271-1/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* update editJesús2020-07-271-1/+1
|
* - Added support for ignoring high frame rate (HFR) videos.trizen2020-07-271-0/+5
| | | | | | | | | | | | 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>
* Version 1.0.4Jesús2020-06-241-1/+1
|
* - Added the `--instance=s` alias for `--api-host=s`, for changing the ↵trizen2020-06-161-1/+1
| | | | invidious instance.
* No longer include newlines in the message prompt for Term::ReadLine.trizen2020-06-151-5/+8
| | | | | | Instead, print the extra lines directly to STDOUT. This fixes the backspace key when Term::ReadLine::Gnu::XS is not installed.
* Handle some potential corner cases.trizen2020-06-151-3/+15
|
* Detect last page when URL is undefined.trizen2020-06-091-31/+23
|
* - Allow playback to be stopped with CTRL+C during `:autoplay=i`.trizen2020-06-061-1/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added a fallback method for extracting video information. - Decode ↵trizen2020-06-061-10/+16
| | | | | | internal YouTube URLs in description. - Various fixes and improvements. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added basic support for related videos. (fixes ↵trizen2020-06-061-1/+9
| | | | | | | | | | | | | | 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>
* In video information, hide fields that do not have a value. ↵trizen2020-06-061-2/+3
| | | | | | (https://github.com/trizen/straw-viewer/issues/13) Signed-off-by: Jesús <heckyel@hyperbola.info>
* Removed the arguments-fix for `mpv 0.32`.trizen2020-06-061-13/+0
| | | | | | Hopefully, everyone now has the fix. (closes https://github.com/trizen/straw-viewer/issues/14) Signed-off-by: Jesús <heckyel@hyperbola.info>
* Removed the `--autohide` option, in favor of `--skip-watched`.trizen2020-06-061-7/+0
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Allow channel & playlist IDs to be longer (between 11 and 64 characters).trizen2020-06-061-2/+6
| | | | | | | | | | | | 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>
* Changed the default cache direction from /tmp/fair-viewer to ↵trizen2020-05-201-7/+4
| | | | | | | | ~/.cache/fair-viewer. (fixes https://github.com/trizen/fair-viewer/issues/11) Also removed the `captions_dir` config-option. Closed-captions are now downloaded inside the cache directory. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Version 1.0.3Jesús2020-03-241-2/+2
|
* Support three-digit video selection.trizen2020-03-141-3/+3
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Extract URLs in description from `descriptionHtml` field. ↵trizen2020-03-141-6/+7
| | | | | | (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>
* minor fix header copyrightJesús2020-03-101-8/+5
|
* Removed the `mplayer` video player entry, as it seems to cause issues.Jesús2020-03-101-27/+4
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix name comentsJesús2020-03-071-1/+1
|