sarowish / ytsub

A subscriptions only TUI Youtube client that uses the Invidious API
GNU General Public License v3.0
15 stars 2 forks source link

Refreshing channels fails #2

Closed enron-hubbard closed 1 year ago

enron-hubbard commented 1 year ago

Environment: manjaro-sway Version: 0.3.1-1 Expected Behavior: All Channels refresh

Behavior:

When attempting to refresh all channels with Shift-R> ytsub panicks and crashes with the following message:

thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', src/channel.rs:100:9

This behavior recurs using AUR installs for ytsub, ytsub-git, and ytsub-bin. It also recurs in the cargo install.

enron-hubbard commented 1 year ago

Manually created an instances file in ~/.config/ytsub to see if that changed the behavior, which changed the error to:

thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', src/channel.rs:102:14
sarowish commented 1 year ago

There have been changes in the Invidious API so refreshing failed when using up-to-date instances. Refreshing should work now with the commit https://github.com/sarowish/ytsub/commit/d9ef233cd5cdbb7b19b038d26ddfba2a5633270c.

enron-hubbard commented 1 year ago

Looks like changing to a different Invidious instance prevents this from recurring. Thanks!