Closed ligix closed 3 years ago
Also embeds doesn't seem to be available (https://youtube[dot]com/embed/l3C8VRFDItk).
Thanks for your report !
After a quick investigation, it seems that this video is available on the web client, but not on Android, so the check made on params["reason"]
can't catch it because there are no reason given:
https://github.com/iv-org/invidious/blob/2b81a82620cee3c1dac3c9b314f37dc2f8ac3086/src/invidious/videos.cr#L852-L863
A 20$ bounty has been added to this issue.
Anyone opening a PR fixing this issue, will receive 20$ (in BTC) from the Invidious project.
More details: #1898
Describe the bug When you open a video, it shows an error instead of playing the video
Steps to Reproduce
Logs Title:
Expected Hash for #[]?(key : String), not String (Exception)
Date:2021-10-30T14:15:34Z
Route:/watch?v=l3C8VRFDItk
Version:2021.10.26-6a15b0b @ master
Backtrace
``` Expected Hash for #[]?(key : String), not String (Exception) from src/invidious/yt_backend/extractors.cr:435:0 in '[]?' from src/invidious/videos.cr:577:47 in 'fmt_stream' from src/invidious/routes/watch.cr:127:18 in 'handle' from lib/kemal/src/kemal/route.cr:13:9 in '->' from /usr/lib/crystal/core/primitives.cr:266:3 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from src/invidious/helpers/static_file_handler.cr:167:15 in 'call' from lib/kemal/src/kemal/exception_handler.cr:8:7 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from lib/kemal/src/kemal/init_handler.cr:12:7 in 'process' from /usr/lib/crystal/core/http/server.cr:500:5 in '->' from /usr/lib/crystal/core/primitives.cr:266:3 in 'run' from /src/boringssl/src/google-boringssl-251b516/ssl/internal.h:334:8 in '???' ```
Additional context