kopia lustrzana https://github.com/iv-org/invidious
Remove backtrace on YouTube error
YouTube returning an error is not a bug in Invidious, so it should not print a backtrace.pull/1504/head
rodzic
3dac33ffba
commit
0f08cc5aa9
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue