| Age | Commit message (Collapse) | Author |
|
Improve error message
|
|
The error message has been reworded and the issue template now includes the
date, route, version and backtrace.
|
|
YouTube returning an error is not a bug in Invidious, so it should not print
a backtrace.
|
|
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.
|
|
Apply dark theme immediately
|
|
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.
|
|
fix: ytInitialData parsing with regex
|
|
|
|
|
|
|
|
Extract playlist routes from global file
|
|
|
|
|
|
Fill empty preference values
|
|
|
|
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.
|
|
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.
|
|
|
|
Remove duplicate Referrer-Policy
|
|
|
|
|
|
Add Previous/Next page buttons at the top of the page
|
|
Update videojs-vtt-thumbnails to latest upstream version and improve storyboard display
|
|
|
|
* Fix missing videos tab on some channels
* Fixed formatting
Co-authored-by: Linux User <user@localhost.local>
|
|
|
|
Note that the latest version on NPM is over two years old so this was built from source.
|
|
Extract embed routes into separate classes
|
|
Update README.md
|
|
|
|
|
|
Fix stale playlist video counting on add/drop (#1448)
|
|
Extract /watch route from main file
|
|
|
|
(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.
|
|
Fix storyboards
|
|
|
|
|
|
|
|
Updated "Hosted Weblate" link and added two items about translations, in order to make this kind of information more prominent.
|
|
* Add liability clause
* Update README.md
|
|
Update get_about_info for polymer (iv-org/invidious#1423)
|
|
Update parsing of ytInitialData
|
|
[refactor] Finish converting jobs to new job setup
|
|
|
|
|
|
|
|
|
|
* More enhancements and fixes to the readme
* Move liberapay away from the features list
|
|
* Major enhancement to the readme
|