diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2021-11-25 23:16:50 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2021-11-25 23:16:50 +0100 |
| commit | ceb1feb3502367ec41c8ae7e28a0cfbd7a2e2170 (patch) | |
| tree | 78b89e485873908d064d0b27cf5025510ddd8985 /assets/js/watched_widget.js | |
| parent | 80a513baa5e595f62b08d7eed1ac709533fde838 (diff) | |
| download | invidious-ceb1feb3502367ec41c8ae7e28a0cfbd7a2e2170.tar.gz invidious-ceb1feb3502367ec41c8ae7e28a0cfbd7a2e2170.tar.bz2 invidious-ceb1feb3502367ec41c8ae7e28a0cfbd7a2e2170.zip | |
likes/dislikes: better fallback management
'.to_i64?' instead of '.to_i64' returns nil rather than raising
an exception when it's done on an empty string.
In some rare cases, rating can be equal to 5. In this case, the
value of player_response[videoDetails][averageRating] is an
Int and not a Float.
Diffstat (limited to 'assets/js/watched_widget.js')
0 files changed, 0 insertions, 0 deletions
