diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-02-11 10:52:28 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-02-11 10:52:28 -0600 |
| commit | 1590393fcc461e8279bbca75162d5f6af0fc5b0b (patch) | |
| tree | 8ccbe332868776da491ef9ecae0eb81251e76549 | |
| parent | 64f13df99bb441b887bd589c4a501aeee4a52634 (diff) | |
| download | invidious-1590393fcc461e8279bbca75162d5f6af0fc5b0b.tar.gz invidious-1590393fcc461e8279bbca75162d5f6af0fc5b0b.tar.bz2 invidious-1590393fcc461e8279bbca75162d5f6af0fc5b0b.zip | |
Don't try to update channels in subscription manager
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index c0b9e075..83e77016 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1375,10 +1375,8 @@ get "/subscription_manager" do |env| subscriptions = [] of InvidiousChannel user.subscriptions.each do |ucid| - begin - subscriptions << get_channel(ucid, PG_DB, false, false) - rescue ex - next + if channel = PG_DB.query_one?("SELECT * FROM channels WHERE id = $1", ucid, as: InvidiousChannel) + subscriptions << channel end end subscriptions.sort_by! { |channel| channel.author.downcase } |
