summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-11-30Merge pull request #1504 from saltycrys/improve-error-messageTheFrenchGhosty
Improve error message
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-28Update logrotate configuration command (#1500)Andre Borie
Using sudo with `echo ... | tee /path/to/file` doesn't make sense, as the command requiring the superuser privileges is the `tee` command and not the echo.
2020-11-26Merge pull request #1490 from tirz/fix-regex_parsingTheFrenchGhosty
fix: ytInitialData parsing with regex
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-18Fix CSS specificity issuessaltycrys
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-15Merge pull request #1476 from unixfox/patch-1Perflyst
Remove duplicate Referrer-Policy
2020-11-15Remove duplicate Referrer-PolicyÉmilien Devos
2020-11-12Merge branch 'master' into patch-1Perflyst
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-12Remove double empty linesaltycrys
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-08Update videojs-vtt-thumbnails to latest upstream versionsaltycrys
Note that the latest version on NPM is over two years old so this was built from source.
2020-11-08Merge pull request #1459 from matthewmcgarvey/embed-routesPerflyst
Extract embed routes into separate classes
2020-11-08Update README.md (#1461)Stefan Haan
Update README.md
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-03Merge pull request #1453 from matthewmcgarvey/extract-watch-routePerflyst
Extract /watch route from main file
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-26Merge pull request #1440 from saltycrys/masterTheFrenchGhosty
Fix storyboards
2020-10-25Fix storyboardssaltycrys
2020-10-24more polish (#1437)TheFrenchGhosty
2020-10-23polish some stuff (#1436)TheFrenchGhosty
2020-10-23Update README.md (#1433)milotype
Updated "Hosted Weblate" link and added two items about translations, in order to make this kind of information more prominent.
2020-10-23Add liability clause (#1434)Qt Resynth
* Add liability clause * Update README.md
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-16Use the new version of lsquic.cr (#1413)TheFrenchGhosty
2020-10-15Extract RefreshChannelsJob (#1403)Matthew McGarvey
2020-10-10Replace the riot.im link with a matrix.to link (#1409)TheFrenchGhosty
2020-10-10More readme enhancements and fixes (#1408)TheFrenchGhosty
* More enhancements and fixes to the readme * Move liberapay away from the features list
2020-10-10Major readme enhancements and fixes (#1407)TheFrenchGhosty
* Major enhancement to the readme