mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add fix for videos without 'rvs'
This commit is contained in:
parent
f3fde38137
commit
16fb5023e0
2 changed files with 5 additions and 9 deletions
|
@ -24,10 +24,8 @@ def crawl_videos(db)
|
|||
end
|
||||
|
||||
rvs = [] of Hash(String, String)
|
||||
if video.info.has_key?("rvs")
|
||||
video.info["rvs"].split(",").each do |rv|
|
||||
rvs << HTTP::Params.parse(rv).to_h
|
||||
end
|
||||
video.info["rvs"]?.try &.split(",").each do |rv|
|
||||
rvs << HTTP::Params.parse(rv).to_h
|
||||
end
|
||||
|
||||
rvs.each do |rv|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue