summaryrefslogtreecommitdiffstats
path: root/src (follow)
AgeCommit message (Collapse)Author
2021-09-15Prevent VR from being initialized in listen mode (#2396)syeopite
2021-09-13HTML escape video mimetypeSamantaz Fox
Video mimetype may contain code information between double quotes. If not properly escaped, it breaks the browser's parser. E.g: ``` type="video/mp4; codecs=" avc1.64001f,="" mp4a.40.2""="" ``` Thank Robin for catching this!
2021-09-10Handle equirectangular projections for VR (#2379)syeopite
2021-09-10Bump dependencies (#2378)syeopite
* Upgrade to Kemal v1.1.0 * Bump postgres driver
2021-09-06Merge pull request #2380 from syeopite/fix-invidious-showing-yt-redirect-linksTheFrenchGhosty
Fix invidious showing yt redirect links
2021-09-05Improve detection and handling of yt redirect linkssyeopite
2021-09-04fix comment repliesEmilien Devos
2021-09-03Propagate replacing yout.be links to /watch to RSSsyeopite
2021-09-03Fix typo causing links to be youtube.com/redirectsyeopite
2021-09-03remove 3gp only from the player (#2376)Émilien Devos
+ video quality precedence on default player when js is not enabled
2021-09-01Properly transform youtu.be links to be /watch routes in comments and ↵syeopite
descriptions (#2365)
2021-09-01Remove the mention of 'Omar Roth' from the footerTheFrenchGhosty
2021-08-30 Extract API routes (#2271)syeopite
* Extract API routes from invidious.cr * Remove deprecated APIs - insights - top feed
2021-08-30Extract feed routes (#2269)syeopite
* Extract feed routes from invidious.cr * Removes the deprecated route for /feed/top * Deprecate /view_all_playlist & use /feed/playlists * Move feed views into their own directory * Add haltf method to halt current route context * Change status_code + return blocks to use haltf * Set appropriate response headers for RSS routes
2021-08-26Fix livestream parsing URLs (#2356)Émilien Devos
2021-08-24Use `athena-negotiation` to detect language through Accept-Language header ↵syeopite
(#2324) Detect language through Accept-Language header
2021-08-23Remove usage of haltf in /api/v1/channels/:ucid/commentssyeopite
2021-08-23Fix /api/v1/search/suggestions route linksyeopite
2021-08-23Bountiful changessyeopite
- Use haltf in more locations - Fix wrong URL params - Rename API modules - Remove API routing file and move everything to general iv routing file
2021-08-16fetch with innertube api when video is unavailable (#2329)Émilien Devos
+ rename some client type to better names + fix thirdParty hack
2021-08-15Readd paid attribute for videos (#2330)syeopite
2021-08-14Extract API routes from invidious.cr (3/3)syeopite
- Auth (excluding notifications*) APIs - Mixes *Notifications currently require the "connection_channel" channel for talking with the notifications job. Unfortunately, we cannot access that within the route modules yet.
2021-08-14Restructure API routes to use more namespacessyeopite
2021-08-14Extract API routes from invidious.cr (2/?)syeopite
- Video playback endpoints - Search feed api - Video info api
2021-08-14Restructure API route organisationsyeopite
2021-08-14Extract API routes from invidious.cr (1/?)syeopite
2021-08-14Remove deprecated APIssyeopite
- insights - top feed
2021-08-13Switch to innertube API for videos (#2220)Émilien Devos
Commit history: - Switch to innertube API for videos - fix hardcoded strings + fix bypass geo-restriction
2021-08-12switch to innertube API for about channels (#2255)Émilien Devos
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