aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/FairViewer/Utils.pm
Commit message (Collapse)AuthorAgeFilesLines
* upstreamJesús2021-07-091-54/+297
|
* More entries in the list of invidious instances in `_extract_from_invidious()`.trizen2020-12-021-3/+0
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - Show the relative age of videos, instead of the published date (which was ↵trizen2020-12-021-0/+4
| | | | | | inaccurate awyway). Signed-off-by: Jesús <heckyel@hyperbola.info>
* - UTF-8 decode the value from `Time::Piece::strftime()`. ↵trizen2020-12-021-1/+4
| | | | | | (https://github.com/trizen/fair-viewer/issues/37) Signed-off-by: Jesús <heckyel@hyperbola.info>
* Minor code tweaks in Utils `has_entries()`trizen2020-11-091-3/+4
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* - 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-091-38/+18
| | | | | | to contain encoded characters of the form "%FF". - Removed some dead code. 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>
* gtk: fixed thumbnails for related videos.trizen2020-09-141-3/+11
| | | | 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>
* - Added a fallback method for extracting video information. - Decode ↵trizen2020-06-061-1/+13
| | | | | | 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/+1
| | | | | | | | | | | | | | 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>
* - 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>
* Keep dual licenses GPLv3 or later and Artistic 2.0Jesús2020-03-031-12/+5
|
* Fix CopyrightJesús2020-03-031-0/+3
|
* Fix Non-ASCII characterJesús2020-03-021-2/+2
|
* Renew AuthorJesús2020-03-021-5/+13
|
* rebrand appJesús2020-03-021-0/+801