Closed LuckyTurtleDev closed 1 year ago
In commands.yml, change launch_command
to something else (for example loadpage watchhistory ;; flush ;; history clear
).
I believe when you disable the popular feed, instead of returning nothing on the api request, it returns an empty array (instead of an error) which itemlist sorta freaks out.
The Popular item in pages.yml
is just the popular page button, by all it does is load a page (similar to a hyperlink). But because in the launch command in commands.yml
loads the popular page on start, as soon as the page loads it crashes because it was not expected to recieve an empty array.
I'm gonna catch this case so it doesnt crash maybe later
Invidious returns a different json with status 500 if popular is disable. https://youtube.luckyturtle.dev/api/v1/popular
{"error":"Closed stream"}
It would possible a good idea to check the status code with the .error_for_status()
function.
Apparently it was already fixed a few git commits ago, its just that the latest crates.io version (0.6.2) is not new enough to include this fix, but it will be included in the next crates.io version
this is the current behavior:
Youtube-tui does panic if invidious has popular feed disable:
If I enable the popular feed at server youtube-tui does work again. I have try to disable popular at the
page,yml
but this has not fix the problem.main.yml
:pages.yml
: