mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-08 16:01:19 +00:00
videos: improve fetching of streaming data
This commit is contained in:
@@ -380,12 +380,6 @@ def fetch_video(id, region)
|
||||
end
|
||||
end
|
||||
|
||||
# Try to fetch video info using an embedded client
|
||||
if info["reason"]?
|
||||
embed_info = extract_video_info(video_id: id, context_screen: "embed")
|
||||
info = embed_info if !embed_info["reason"]?
|
||||
end
|
||||
|
||||
if reason = info["reason"]?
|
||||
if reason == "Video unavailable"
|
||||
raise NotFoundException.new(reason.as_s || "")
|
||||
|
||||
Reference in New Issue
Block a user