aboutsummaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Pick and set a random invidious instance when the current instance is down.trizen2020-11-091-1/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Extended right-click "Play as audio" to support playlists.trizen2020-11-091-3/+7
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Mention "pipe-viewer" in README. - Allow channel usernames in YouTube URLs ↵trizen2020-11-091-16/+20
| | | | | | to contain encoded characters of the form "%FF". - Removed some dead code. Signed-off-by: Jesús <heckyel@hyperbola.info>
* gtk: added the "Video License" combobox.trizen2020-11-091-10/+19
| | | | | | | | | It allows searching only for videos with Creative-Commons license. - Added tooltips for the comboboxes in the gtk version. - Several internal improvements. Signed-off-by: Jesús <heckyel@hyperbola.info>
* gtk: added the right-click "Play as audio" entry.trizen2020-11-091-8/+24
| | | | | | Will play the selected video as audio with CLI fair-viewer in a new terminal. Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Replaced "--title" with "--force-media-title" for `mpv` player. ↵trizen2020-11-092-4/+4
| | | | | | (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-092-6/+7
| | | | | Updated "determine_image_format()" to detect WEBP. Although, at the moment, the PixbufLoader doesn't recognize the WEBP format.
* Update from upstreamJesús2020-11-092-25/+410
| | | | | | | | - 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-092-158/+27
| | | | | | | | | | | | | | 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-092-32/+28
| | | | | | 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-092-7/+49
|
* - Implemented `sort_by` and `date` parameters for `/search`. ↵trizen2020-09-282-342/+300
| | | | | | | | | | | | | | | (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>
* gtk: fixed the detection of "no results" vs "api down"trizen2020-09-141-5/+5
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Suggest trying "--api=auto" when the current invidious instance fails.trizen2020-09-142-24/+28
| | | | 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-142-0/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Added support for loading cookies from a file.trizen2020-09-142-14/+31
| | | | | | | | | | | | 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-142-4/+4
| | | | | | | | | | | | | | | | 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-142-2/+2
| | | | | | `yewtu.be`. Signed-off-by: Jesús <heckyel@hyperbola.info>
* gtk: display an helpful message when the API instance fails.trizen2020-08-141-7/+14
| | | | 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-142-2/+2
| | | | | | 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-272-2/+2
|
* - Added support for ignoring high frame rate (HFR) videos.trizen2020-07-272-0/+7
| | | | | | | | | | | | 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-242-2/+2
|
* Ignore harmless errors.trizen2020-06-231-6/+10
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - 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
|
* gtk: append next page entry only when URL is defined.trizen2020-06-071-0/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - 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-062-16/+19
| | | | | | 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-062-21/+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-202-11/+7
| | | | | | | | ~/.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-242-3/+3
|
* 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
|