videos: improve fetching of streaming data

This commit is contained in:
Samantaz Fox
2022-11-06 21:23:58 +01:00
parent 2acff70811
commit cc5c83333f
2 changed files with 48 additions and 36 deletions

View File

@@ -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 || "")