Skip to content

Invidious is an alternative front-end to YouTube

Remove backtrace on YouTube error

saltycrys0f08cc5aa9c6
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 20048460..8b20c181 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -998,7 +998,7 @@ def fetch_video(id, region)
}.try { |a| JSON::Any.new(a) } || JSON::Any.new([] of JSON::Any)
end
- raise info["reason"]?.try &.as_s || "" if !info["videoDetails"]?
+ raise InfoException.new(info["reason"]?.try &.as_s || "") if !info["videoDetails"]?
video = Video.new({
id: id,