summaryrefslogtreecommitdiffstats
path: root/src (follow)
AgeCommit message (Collapse)Author
2021-08-12Check for existance of "adaptiveFormats" in videossyeopite
Combined from commits: - Check for existance of "adaptiveFormats" in videos - Remove usage of ternary conditional
2021-08-12fix comments using digEmilien Devos
2021-08-12Use the new youtube api for comments (#2217)Émilien Devos
* use the new youtube api for comments * remove PG_DB & action parameter + allow force region * support new comments data with onResponseReceivedEndpoints
2021-08-11Switch routing logic to use modules (#2298)syeopite
* Switch routing logic to use modules * Add more macros for adding routes of different HTTP methods
2021-08-03TypoTheFrenchGhosty
2021-08-03Extract channel routes (#2227)syeopite
* Extract primary channel routes from invidious.cr Also removes timedtext_video stub since all it does is redirect to the homepage. However, Invidious's 404 handler already does this. -- As the template for the channel about page doesn't exist yet, the behavior for the /channel/:ucid/about endpoint has been changed to be the same as what's currently present on Invidious (cherry picked from commit 8fad19d8057d7d22e3de27ebbc88a9978c1df27b) * Manually extract brand_redirect from 1b569bbc99207cae7c20aa285f42477ae361dd30 This commit manually extracts the brand_redirect function from the commit mentioned. However, the redirect to the `.../about` endpoint is removed due to the fact that it doesn't exist yet. This commit is also mainly just a bridge for the next few cherry picks from \#2215 * Update brand_redirect to use youtubei resolve_url (cherry picked from commit 53335fe7cfdfac392365b7cac447bc7cc6478134) * Add additional channel endpoints to brand_redirect (cherry picked from commit 8fc6f3add637dabb09b2034f4d82fc3d039ba15c) * Add separate handler for /profile endpoint * Add /channel/:ucid/home route * Document all channel brand_urls
2021-08-03Fix crystal overrides (#2295)Samantaz Fox
* Move Crystal stdlib classes overrides to a separate file * Document known crystal overrides * Update crystal overrides for HTTP::Client socket * Update shard.yml to restrict crystal versions * Fix compilation error in Crystal 1.1.x (See https://github.com/crystal-lang/crystal/issues/10965 for more details about this issue).
2021-08-03Fix #resolve_url by adding ClientConfig argumentsyeopite
The private `_post_json` method of the YoutubeAPI requires a ClientConfig as the third parameter. This was passed in all Youtube API methods except the `#resolve_url` method.
2021-08-03Youtube api improvements (#2277)Samantaz Fox
* Put youtube API functions under the YoutubeAPI namespace * Implement the following endpoints: - `next` - `player` - `resolve_url` * Allow a ClientConfig to be passed to YoutubeAPI endpoint handlers. * Add constants for many new clients * Fix documentation of YoutubeAPI.browse(): Comments and search result aren't returned by the browse() endpoint but by the next() and search() endpoints, respectively. * Accept gzip compressed data, to help save on bandwidth * Add debug/trace logging * Other minor fixes
2021-07-28Remove workaround for decompression of proxied files (#2286)Samantaz Fox
Was used by `proxy_file` before crystal 0.35.0. Implemented in: f7dbf2bdd4f38fed72ad823be1bc86b727aafdb0 orphaned since: d30a972a909e66d963ee953349fe045a1d9a41ee
2021-07-28Fix raw parameter for videos in listen mode (#2270)syeopite
2021-07-26Add Korean (ko.json) to loaded localesSamantaz Fox
Required because of c83113d49be085b41756d5f7eecca3d4e7d2fabd.
2021-07-16Merge pull request #2201 from pinchese/patch-1syeopite
futureproof comment avatars
2021-07-15Multiple front-end fixes (#2247)Samantaz Fox
Fixes: * Sanitize user-provided content in HTML (Fixes #2193) * Fix encoding of search query in prev/next pages (Fixes #2229) * Fix some issues introduced with #2196: - Fix alignment of all <h3> elements (Move the inline style from the parent to the <h3> element) - Add missing comma on 'dir' HTML attribute (Typo introduced by PR #2196) Code cleaning: * Remove unnecessary 'each_sclice' + 'each' double loop in ECR files * Clean the player's <source> list generation code (in player.ecr)
2021-07-14Merge pull request #2205 from syeopite/fix-age-restricted-videossyeopite
Partial (and temporary) fix for age restricted videos
2021-07-14Mute unbuffered_flush IOError exception (#2235)Émilien Devos
Related to #1416, it doesn't really fix the real error, but instead mutes the exception message. Like explained in #1416, this "exception Error" while flushing the client data doesn't harm the client-server connection. However, this exception message continuously spams the logs and makes debugging and error finding really difficult.
2021-07-14Debloat channels.cr into multiple files (#2225)syeopite
Cherry picked from ui overhaul branch with a few modifications: - channel folder is renamed to channels - parsing for channel home and featured channels are removed due to lack of infrastructure from other commits (cherry picked from commit 44d18b8e147b47ad06a54cc6fd08423d9f39074d)
2021-07-12Add new and missing locales to i18n.crSamantaz Fox
New locales: lt, vi Missing: bn_BD, cs, da, eu, hu-HU, si, sk, sr, sr_Cyrl
2021-07-11Use struct for caption objectsyeopite
2021-07-02Use embed stream pull as fallback for gated videossyeopite
2021-07-01Remove workaround for kemalcr/kemal/issues/575 (#2230)Émilien Devos
Full URL of the issue: https://github.com/kemalcr/kemal/issues/575
2021-06-27Merge pull request #2196 from ahangarha/patch-1Samantaz Fox
Add bi-directional text support
2021-06-27Fix caption parsing on age restricted videossyeopite
2021-06-25Wrap commentsyeopite
2021-06-25Switch from URI::Params.new to URI::Params.encodesyeopite
2021-06-25Fix layout of video 'card' itemsSamantaz Fox
Previous changes broke alignment of text and icons
2021-06-25Merge pull request #2195 from B0pol/trendingSamantaz Fox
Use youtubei API for trending
2021-06-25Pick a random video for bypass captchaÉmilien Devos
pick a random video from the 1000 first rows of the channel_videos table in order to bypass the captcha more efficiently
2021-06-25Fix extraction of age restricted videossyeopite
2021-06-24futureproof comment avatarsPenny
i was injecting custom css into the site that made the avatars round, and noticed comment avatars looked a little odd i opened dev tools and siffed through the html, and noticed that the image was being padded, when it would look nicer if the element used margin instead of padding with padding: https://imgur.com/c0pB37e with proposed changes (margin instead of padding): https://imgur.com/iKmBzEi
2021-06-25Right-align the RSS icon in channel playlistsSamantaz Fox
2021-06-25Fix RTL text in video titles on FirefoxSamantaz Fox
The behavior was as follow: on Right-To-Left text (e.g Arabic) that is wrapped (because it's too long to fit on one line), the second row and following rows may or may not be right aligned (as RTL text should be). Opening the devtools fixes that alignement, as consistently as closing the devtool breaks it. This problem seems to arrive only in the following configurations (link nested in a paragraph, both of which may or may not have the dir= attribute): * `<p><a href="some_link">RTL_TEXT</a></p>` * `<p><a href="some_link" dir="auto">RTL_TEXT</a></p>` * `<p dir="auto"><a href="some_link">RTL_TEXT</a></p>` with the following CSS: ``` p { unicode-bidi: plaintext; text-align: start; } ``` Changing the HTML to the following configuration (a paragraph with the dir= attribute, nested in a link) seems to fix it: `<a href="some_link"><p dir="auto">RTL_TEXT</p></a>`
2021-06-24fix feed alignment on community viewMostafa Ahangarha
2021-06-24Limit descriptions width to ease mixed LTR/RTL text readingSamantaz Fox
This will prevent, on large pages, the LTR and RTL text to be far away, on each side of the page. This could happen on channel and playlists descriptions, when the page is displayed on a large screen.
2021-06-24set alignment for feed linkMostafa Ahangarha
2021-06-24Change description-box from flex to blockCadence Ember
I also make minor changes to the surroundings so that the same layout and functionality as before is preserved.
2021-06-24Use youtubei API for trendingbopol
2021-06-20Fix quoting of 'none' in CSP headerSamantaz Fox
The keyword 'none' must be surrounded by single quotes. Regression introduced by #2168.
2021-06-19update video URL for recaptcha detectionÉmilien Devos
2021-06-19Remove unnecessary "Welcome, " on username displaysyeopite
2021-06-19Display username in headerMateusz Makowski
2021-06-19Connect to api.invidious.io with httpssyeopite
2021-06-19Disable automatic instance redirection by defaultsyeopite
2021-06-19Rephrase auto instance redirect preferencesyeopite
2021-06-19Refactor fetch_random_instancesyeopite
2021-06-19Handle if inst. api is down for rand inst fetchsyeopite
2021-06-19Fix inst. fetching for inst w/ disabled stats/errsyeopite
2021-06-19Fix <hr> styling on empty search pagesyeopite
2021-06-19Add switch invidious instance btn to all chan tabssyeopite
2021-06-19Fix locale consistency for err template redirectssyeopite