mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Minor refactor
This commit is contained in:
parent
4aada65dae
commit
7b88d0efe3
2 changed files with 7 additions and 12 deletions
|
@ -621,10 +621,7 @@ struct Video
|
|||
|
||||
if fmts = player_response["streamingData"]?.try &.["adaptiveFormats"]?
|
||||
fmts.as_a.each do |adaptive_fmt|
|
||||
if !adaptive_fmt.as_h?
|
||||
next
|
||||
end
|
||||
|
||||
next if !adaptive_fmt.as_h?
|
||||
fmt = {} of String => String
|
||||
|
||||
if init = adaptive_fmt["initRange"]?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue