summaryrefslogtreecommitdiffstats
path: root/src (follow)
AgeCommit message (Collapse)Author
2020-12-01Improve error message 2saltycrys
Electric Boogaloo The long backtrace has been moved into a `<details>` HTML element, as suggested by @B0pol. To make the error still visible it has been added to the top under `Title:`. This also encourages informative issue titles.
2020-12-01Switch to date based versioning schemesaltycrys
Since no new tags are created for releases the version has been frozen for some time, with only the commit hash changing. Versions based on the latest commit date make it much easier to identify them.
2020-11-30fix: channel info parsingThéo Gaillard
2020-11-30Fix formatting of #1504TheFrenchGhosty
2020-11-30Improve error messagesaltycrys
The error message has been reworded and the issue template now includes the date, route, version and backtrace.
2020-11-30Remove backtrace on YouTube errorsaltycrys
YouTube returning an error is not a bug in Invidious, so it should not print a backtrace.
2020-11-30Add backtraces to errors (#1498)saltycrys
Error handling has been reworked to always go through the new `error_template`, `error_json` and `error_atom` macros. They all accept a status code followed by a string message or an exception object. `error_json` accepts a hash with additional fields as third argument. If the second argument is an exception a backtrace will be printed, if it is a string only the string is printed. Since up till now only the exception message was printed a new `InfoException` class was added for situations where no backtrace is intended but a string cannot be used. `error_template` with a string message automatically localizes the message. Missing error translations have been collected in https://github.com/iv-org/invidious/issues/1497 `error_json` with a string message does not localize the message. This is the same as previous behavior. If translations are desired for `error_json` they can be added easily but those error messages have not been collected yet. Uncaught exceptions previously only printed a generic message ("Looks like you've found a bug in Invidious. [...]"). They still print that message but now also include a backtrace.
2020-11-28Merge pull request #1479 from saltycrys/theme-flashTheFrenchGhosty
Apply dark theme immediately
2020-11-26revert: remove 'JSON.parse("'Théo Gaillard
2020-11-26feat: centralize ytInitialData parsingThéo Gaillard
2020-11-26fix: ytInitialData parsing with regexThéo Gaillard
2020-11-20Merge pull request #1482 from matthewmcgarvey/extract-playlist-routesTheFrenchGhosty
Extract playlist routes from global file
2020-11-20allow to set a custom anti-captcha api url (#1473)Émilien Devos
2020-11-19Extract playlist routes from global fileMatthew McGarvey
2020-11-19Merge pull request #1477 from saltycrys/empty-preference-valuesTheFrenchGhosty
Fill empty preference values
2020-11-17Move themes into default.csssaltycrys
Now that themes are controlled with a class instead of setting media="none" on the stylesheet link and both themes already being duplicated in default.css for the automatic themeing it makes sense to have all theme related CSS in the same place. This commit also fixes the missing dark theme on embeds.
2020-11-16Apply dark theme immediatelysaltycrys
Themes are now controlled with a class on the body element. If a preference is set the body element will have either "dark-theme" or "light-theme" class. If no preference is set or the preference is empty the class will be "no-theme". "dark-theme" and "light-theme" are handled by darktheme.css and lighttheme.css respectively. "no-theme" is handled by default.css where depending on the value of "prefers-color-scheme" the styles corresponding to "dark-theme" or "light-theme" are applied. Unfortunately this means that both themes are duplicated, once in the theme .css and once in default.css.
2020-11-16Fill empty preference valuessaltycrys
2020-11-15Remove duplicate Referrer-PolicyÉmilien Devos
2020-11-12Merge pull request #919 from edumoreira1506/feature/add-buttons-top-pagePerflyst
Add Previous/Next page buttons at the top of the page
2020-11-12Merge pull request #1465 from saltycrys/storyboardsPerflyst
Update videojs-vtt-thumbnails to latest upstream version and improve storyboard display
2020-11-12Fix missing videos tab on some channels (#1462)Johnquai
* Fix missing videos tab on some channels * Fixed formatting Co-authored-by: Linux User <user@localhost.local>
2020-11-08Improve storyboard displaysaltycrys
2020-11-07FormattingMatthew McGarvey
2020-11-06Extract embed routes into separate classesMatthew McGarvey
2020-11-03Merge pull request #1449 from raycheung/masterPerflyst
Fix stale playlist video counting on add/drop (#1448)
2020-11-02Extract /watch route from main fileMatthew McGarvey
2020-11-01Fix stale playlist video counting on add/drop ↵Ray Cheung
(https://github.com/iv-org/invidious/issues/1448) The return of `cardinality()` is not affected by the `array_append()` and `array_remove()` of the same statement.
2020-10-25Fix storyboardssaltycrys
2020-10-24more polish (#1437)TheFrenchGhosty
2020-10-23Update get_about_info for polymer (iv-org/invidious#1423) (#1429)Triplesalt
Update get_about_info for polymer (iv-org/invidious#1423)
2020-10-22Update parsing of ytInitialData (#1427)Ben Heller
Update parsing of ytInitialData
2020-10-17[refactor] Finish converting jobs to new job setup (#1420)Matthew McGarvey
[refactor] Finish converting jobs to new job setup
2020-10-16Set preferences before conditional breaks in before_all (#1412)Matthew McGarvey
2020-10-15Extract RefreshChannelsJob (#1403)Matthew McGarvey
2020-10-10Merge pull request #1372 from tleydxdy/patch-1Perflyst
Add exponential backoff to refresh_channels
2020-10-10Use channel API v3Perflyst
2020-10-08Merge pull request #1402 from matthewmcgarvey/feed-menu-overlapTheFrenchGhosty
Fix feed menu overlap at iPad screen widths
2020-10-07Fix feed menu overlap at ipad screen widthsMatthew McGarvey
2020-10-05Provide rough draft of better project organizationMatthew McGarvey
2020-10-05Merge pull request #1379 from Rjevski/patch-1TheFrenchGhosty
Remove on-hover tooltip from player
2020-10-03Fix formattingPerflyst
2020-09-25Fix #1382 : Playlists missing first videoGauthier POGAM--LE MONTAGNER
The index was set to index - 1, causing the first video to be shifted in fetch_playlist_videos (because of its index being -1 lower than it should) and thus not displayed on playlist page.
2020-09-15Remove on-hover tooltip from playerAndre Borie
Using the player on latest Safari, the tooltip appears and stays stuck for long even when switching to fullscreen which is annoying. You need to explicitly click anywhere to dismiss that stuck tooltip. This doesn't seem to happen in Firefox so I am not sure whether this is a browser bug, but in any case I don't see any value in keeping this tooltip so maybe we can just remove it?
2020-09-09Allow cookies from anti-captcha to be optional (#1371)Omar Roth
2020-09-09Fix sub refresh (#1370)Omar Roth
2020-09-09Add exponential backoff to refresh_channelstleydxdy
In practice with the patch I usually see backoff to 2 hours when blocked, so it should improve recovery time. The lim_thread is to work with multi-threading, not sure if it's the best way to do it.
2020-09-02Use new youtube API to fetch channel videos (#1355)Ben Heller
* Use new API to fetch videos from channels This mirrors the process used by subscriptions.gir.st. The old API is tried first, and if it fails then the new one is used. * Use the new API whenever getting videos from a channel I created the get_channel_videos_response function because now instead of just getting a single url, there are extra steps involved in getting the API response for channel videos, and these steps don't need to be repeated throughout the code. The only remaining exception is the bypass_captcha function, which still only makes a request to the old API. I don't know whether this code needs to be updated to use the new API for captcha bypassing to work correctly. * Correctly determine video length with new api * Remove unnecessary line
2020-08-25Replace omarroth with iv-org where applicable (#1353)stranger195
Fixes #1353
2020-07-28Fix playlist export for playlists with more than 100 videosOmar Roth